diff options
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/port-aix.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsd-compat/port-aix.h b/openbsd-compat/port-aix.h index 4627a82f0..2e5def54e 100644 --- a/openbsd-compat/port-aix.h +++ b/openbsd-compat/port-aix.h | |||
@@ -35,6 +35,11 @@ | |||
35 | # endif | 35 | # endif |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | /* Some versions define r_type in the above headers, which causes a conflict */ | ||
39 | #ifdef r_type | ||
40 | # undef r_type | ||
41 | #endif | ||
42 | |||
38 | /* AIX 4.2.x doesn't have nanosleep but does have nsleep which is equivalent */ | 43 | /* AIX 4.2.x doesn't have nanosleep but does have nsleep which is equivalent */ |
39 | #if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP) | 44 | #if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP) |
40 | # define nanosleep(a,b) nsleep(a,b) | 45 | # define nanosleep(a,b) nsleep(a,b) |