From: erg Date: Mon, 16 Jun 2008 17:58:15 +0000 (+0000) Subject: Fix problems involving unistd.h. Remove traces of it (R_OK) from X-Git-Tag: LAST_LIBGRAPH~32^2~3952 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9dce8f8307c072013dd77f285bcfc29d1e621447;p=graphviz Fix problems involving unistd.h. Remove traces of it (R_OK) from ast_common.h.in, and use compat_unistd.h in gvpr.c if the real one isn't around. --- diff --git a/ast_common.h.in b/ast_common.h.in index f57967e51..5f0c832ab 100644 --- a/ast_common.h.in +++ b/ast_common.h.in @@ -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*/ diff --git a/cmd/gvpr/gvpr.c b/cmd/gvpr/gvpr.c index 4628628bb..ddf2a1cc7 100644 --- a/cmd/gvpr/gvpr.c +++ b/cmd/gvpr/gvpr.c @@ -26,6 +26,8 @@ #endif #ifdef HAVE_UNISTD_H #include +#else +#include #endif #include #ifdef USE_CGRAPH