use compat_unistd.h in the same was as gvpr, base on HAVE_UNISTD_H from configure
authorJohn Ellson <ellson@research.att.com>
Thu, 16 Aug 2012 11:51:54 +0000 (07:51 -0400)
committerJohn Ellson <ellson@research.att.com>
Thu, 16 Aug 2012 11:51:54 +0000 (07:51 -0400)
lib/common/Makefile.am
lib/common/utils.c

index f8d19bb933305e17eaa5c3a9ebb114e941cd5aaa..f27e0bd8cab528bb0db0bc92565b19f096c291dd 100644 (file)
@@ -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)
 
index 58ff9ac029036813a190c33e6f068aab19124831..5c38a5c7f14fd6090079a471bfabdd1571948aae 100644 (file)
 #include "logic.h"
 #include "gvc.h"
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#else
+#include "compat_unistd.h"
+#endif
+
 #ifdef WIN32
 #include "libltdl/lt_system.h"
 #endif
-#ifndef WIN32
-#include <unistd.h>
-#endif
 #include <ctype.h>
 
 /*