]> granicus.if.org Git - graphviz/commitdiff
include unistd.h if possible before attempting to define R_OK
authorellson <devnull@localhost>
Wed, 9 Aug 2006 16:08:47 +0000 (16:08 +0000)
committerellson <devnull@localhost>
Wed, 9 Aug 2006 16:08:47 +0000 (16:08 +0000)
ast_common.h.in

index f57967e51ac768cb8a536ca83026d12deea27844..e51fb61f4c47e4598f3a7f794a169540f4b59081 100644 (file)
@@ -207,6 +207,10 @@ typedef int ssize_t;
 #endif
 #endif
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
 #ifndef MAXINT
 #define MAXINT INT_MAX
 #endif