From 4a359e50a2b1694e82cc9831a00b2917f39d8f00 Mon Sep 17 00:00:00 2001 From: John Ellson Date: Thu, 16 Aug 2012 07:51:54 -0400 Subject: [PATCH] use compat_unistd.h in the same was as gvpr, base on HAVE_UNISTD_H from configure --- lib/common/Makefile.am | 1 + lib/common/utils.c | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) 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 /* -- 2.50.1