]> granicus.if.org Git - graphviz/commitdiff
Fix problems involving unistd.h. Remove traces of it (R_OK) from
authorerg <devnull@localhost>
Mon, 16 Jun 2008 17:58:15 +0000 (17:58 +0000)
committererg <devnull@localhost>
Mon, 16 Jun 2008 17:58:15 +0000 (17:58 +0000)
ast_common.h.in, and use compat_unistd.h in gvpr.c if the real
one isn't around.

ast_common.h.in
cmd/gvpr/gvpr.c

index f57967e51ac768cb8a536ca83026d12deea27844..5f0c832ab631b4c139095722dced05273379b1c8 100644 (file)
@@ -211,8 +211,4 @@ typedef int ssize_t;
 #define MAXINT INT_MAX
 #endif
 
-#ifndef R_OK
-#define R_OK 4
-#endif
-
 #endif /*AST_COMMON_H*/
index 4628628bb29b44bcdb3b1c62478ad5f754b3011e..ddf2a1cc7c0b3fe6643557a16b7bed97908a0ac2 100644 (file)
@@ -26,6 +26,8 @@
 #endif
 #ifdef HAVE_UNISTD_H
 #include       <unistd.h>
+#else
+#include       <compat_unistd.h>
 #endif
 #include <gprstate.h>
 #ifdef USE_CGRAPH