summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-11-05 17:58:48 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-11-07 21:56:34 -0800
commitebaa906159a73eeb001506a7787f5128f17af61a (patch)
treeb9789e7f245b7035eff24efb87a9cc8cdf56aa06
parent1804def12f26b9f64453fb9d641034f8de92ff7d (diff)
downloadxorg-lib-libXaw-ebaa906159a73eeb001506a7787f5128f17af61a.tar.gz
Use autoconf HAVE_UNISTD_H instead of imake X_NOT_POSIX to find <unistd.h>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--src/OS.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OS.c b/src/OS.c
index 8bc23dd..4c69005 100644
--- a/src/OS.c
+++ b/src/OS.c
@@ -7,7 +7,7 @@
#include <X11/IntrinsicP.h>
#include "Private.h"
-#ifndef X_NOT_POSIX
+#ifdef HAVE_UNISTD_H
#include <unistd.h> /* for sysconf(), and getpagesize() */
#endif