From: erg <devnull@localhost>
Date: Mon, 16 Jun 2008 16:29:54 +0000 (+0000)
Subject: Re-add definition for R_OK. Can we think of any OS which might
X-Git-Tag: LAST_LIBGRAPH~32^2~3953
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46dcaeb655de11f64ce978ed445836b253a71b01;p=graphviz

Re-add definition for R_OK. Can we think of any OS which might
not have unistd.h to supply this definition?
---

diff --git a/ast_common.h.in b/ast_common.h.in
index 5f0c832ab..f57967e51 100644
--- a/ast_common.h.in
+++ b/ast_common.h.in
@@ -211,4 +211,8 @@ typedef int ssize_t;
 #define MAXINT INT_MAX
 #endif
 
+#ifndef R_OK
+#define R_OK 4
+#endif
+
 #endif /*AST_COMMON_H*/