File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33# posix.h
44have_header 'unistd.h'
5- have_func 'getpagesize'
5+ have_func 'getpagesize' , 'unistd.h'
66have_header 'stdlib.h'
7- have_func 'getloadavg'
7+ if have_header 'sys/loadavg.h'
8+ have_func 'getloadavg' , 'sys/loadavg.h'
9+ else
10+ have_func 'getloadavg'
11+ end
812
913# mach.h
1014have_header 'mach/mach.h'
Original file line number Diff line number Diff line change 1- #if defined(HAVE_UNISTD_H ) && defined( HAVE_GETPAGESIZE )
1+ #if defined(HAVE_UNISTD_H )
22#include <unistd.h>
3+ #endif
34
5+ #if defined(HAVE_GETPAGESIZE )
46#ifndef VMSTAT_PAGESIZE
57#define VMSTAT_PAGESIZE
68VALUE vmstat_pagesize (VALUE self ) {
@@ -9,7 +11,11 @@ VALUE vmstat_pagesize(VALUE self) {
911#endif
1012#endif
1113
12- #if defined(HAVE_STDLIB_H ) && defined(HAVE_GETLOADAVG )
14+ #if defined(HAVE_SYS_LOADAVG_H )
15+ #include <sys/loadavg.h>
16+ #endif
17+
18+ #if defined(HAVE_GETLOADAVG )
1319#ifndef VMSTAT_LOAD_AVERAGE
1420#define VMSTAT_LOAD_AVERAGE
1521VALUE vmstat_load_average (VALUE self ) {
You can’t perform that action at this time.
0 commit comments