diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-05-16 11:00:37 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-05-16 11:00:37 +0000 |
commit | 4074d8b182c6f60335dab996339660d9bd0dd266 (patch) | |
tree | 9c8050e25297b336fe4ab6a2dbc2ec23dabadaf7 /src/sysdeps | |
parent | 97e0a785c827577aada4a474d2616af00a7278f4 (diff) | |
download | skalibs-4074d8b182c6f60335dab996339660d9bd0dd266.tar.xz |
Accommodate some broken GNU toolchains by including sys/types.h in sysdeps tests
Diffstat (limited to 'src/sysdeps')
-rw-r--r-- | src/sysdeps/trygetpeereid.c | 1 | ||||
-rw-r--r-- | src/sysdeps/trysetgroups.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/sysdeps/trygetpeereid.c b/src/sysdeps/trygetpeereid.c index 63cdbf1..10a411a 100644 --- a/src/sysdeps/trygetpeereid.c +++ b/src/sysdeps/trygetpeereid.c @@ -3,6 +3,7 @@ #undef _POSIX_C_SOURCE #undef _XOPEN_SOURCE +#include <sys/types.h> #include <unistd.h> int main (void) diff --git a/src/sysdeps/trysetgroups.c b/src/sysdeps/trysetgroups.c index 530cda0..66b831f 100644 --- a/src/sysdeps/trysetgroups.c +++ b/src/sysdeps/trysetgroups.c @@ -23,6 +23,7 @@ #define __EXTENSIONS__ #endif +#include <sys/types.h> #include <unistd.h> #include <grp.h> |