From: John Ellson Date: Thu, 16 Aug 2012 11:51:54 +0000 (-0400) Subject: use compat_unistd.h in the same was as gvpr, base on HAVE_UNISTD_H from configure X-Git-Tag: LAST_LIBGRAPH~32^2~349 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a359e50a2b1694e82cc9831a00b2917f39d8f00;p=graphviz use compat_unistd.h in the same was as gvpr, base on HAVE_UNISTD_H from configure --- diff --git a/lib/common/Makefile.am b/lib/common/Makefile.am index f8d19bb93..f27e0bd8c 100644 --- a/lib/common/Makefile.am +++ b/lib/common/Makefile.am @@ -15,6 +15,7 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/lib/xdot \ -I$(top_srcdir)/lib/fdpgen \ -I$(top_srcdir)/lib/pathplan \ + -I$(top_srcdir)/lib/ast \ -I$(top_srcdir)/lib/$(GRAPH) \ -I$(top_srcdir)/lib/cdt $(GD_INCLUDES) $(EXPAT_INCLUDES) $(Z_INCLUDES) diff --git a/lib/common/utils.c b/lib/common/utils.c index 58ff9ac02..5c38a5c7f 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -18,12 +18,15 @@ #include "logic.h" #include "gvc.h" +#ifdef HAVE_UNISTD_H +#include +#else +#include "compat_unistd.h" +#endif + #ifdef WIN32 #include "libltdl/lt_system.h" #endif -#ifndef WIN32 -#include -#endif #include /*