]> granicus.if.org Git - graphviz/commitdiff
Add modifications for ast to build on Windows
authorerg <devnull@localhost>
Thu, 3 May 2007 19:09:15 +0000 (19:09 +0000)
committererg <devnull@localhost>
Thu, 3 May 2007 19:09:15 +0000 (19:09 +0000)
lib/ast/pathpath.c

index 4a652bb28cc0af7d321c6df7d8ae2314241d5707..8a3e9331fbdcd3e844fae0114376515270578ffd 100644 (file)
 
 #include <ast.h>
 #include <string.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#else
+#include <compat_unistd.h>
+#endif
 
 /* #include <option.h> */
+#ifdef WIN32
+#define environ _environ
+#else
 extern char **environ;
+#endif
 char **opt_info_argv;
 
 char *pathpath(register char *path, const char *p, const char *a, int mode)