summaryrefslogtreecommitdiff
path: root/openbsd-compat/port-aix.h
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2003-02-01 04:43:34 +0000
committerBen Lindstrom <mouring@eviladmin.org>2003-02-01 04:43:34 +0000
commit4b0f1ad4dbf1e3c42e9043ce0b0739a89f5b4c86 (patch)
treea5f55a5839703da126625923875c20b4adb4f8e0 /openbsd-compat/port-aix.h
parent4d9dc1aa82a8c1e5feaef74ba1ee532b02823947 (diff)
- (bal) AIX 4.2.1 lacks nanosleep(). Patch to use nsleep() provided by
dtucker@zip.com.au
Diffstat (limited to 'openbsd-compat/port-aix.h')
-rw-r--r--openbsd-compat/port-aix.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/openbsd-compat/port-aix.h b/openbsd-compat/port-aix.h
index 79570a20..4abe0031 100644
--- a/openbsd-compat/port-aix.h
+++ b/openbsd-compat/port-aix.h
@@ -25,5 +25,16 @@
*/
#ifdef _AIX
+
+/* AIX 4.2.x doesn't have nanosleep but does have nsleep which is equivalent */
+#if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP)
+# define nanosleep(a,b) nsleep(a,b)
+#endif
+
+/* For struct timespec on AIX 4.2.x */
+#ifdef HAVE_SYS_TIMERS_H
+# include <sys/timers.h>
+#endif
+
void aix_usrinfo(struct passwd *pw);
#endif /* _AIX */