# | Line 22 | Line 22 | |
---|---|---|
22 | #ifdef NETBSD | |
23 | #include <limits.h> | |
24 | #endif | |
25 | + | #ifdef CYGWIN |
26 | + | #include <sys/unistd.h> |
27 | + | #endif |
28 | ||
29 | typedef struct{ | |
30 | long long user; | |
# | Line 66 | Line 69 | typedef struct{ | |
69 | #ifdef NETBSD | |
70 | #define MAX_LOGIN_NAME_SIZE _POSIX_LOGIN_NAME_MAX | |
71 | #endif | |
72 | + | #if defined(CYGWIN) |
73 | + | #define MAX_LOGIN_NAME_SIZE _SC_LOGIN_NAME_MAX |
74 | + | #endif |
75 | ||
76 | typedef struct{ | |
77 | char *name_list; | |
# | Line 154 | Line 160 | page_stat_t *get_page_stats(); | |
160 | page_stat_t *get_page_stats_diff(); | |
161 | ||
162 | int statgrab_init(void); | |
163 | + | int statgrab_drop_privileges(void); |
164 | + |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |