Some Win32 fixes.
authorScott Cantor <cantor.2@osu.edu>
Sun, 20 Apr 2003 07:37:39 +0000 (07:37 +0000)
committerScott Cantor <cantor.2@osu.edu>
Sun, 20 Apr 2003 07:37:39 +0000 (07:37 +0000)
shar/shar-utils.cpp

index ed34760..047c557 100644 (file)
@@ -6,14 +6,22 @@
  * $Id$
  */
 
-#include <unistd.h>
+// eventually we might be able to support autoconf via cygwin...
+#if defined (_MSC_VER) || defined(__BORLANDC__)
+# include "config_win32.h"
+#else
+# include "config.h"
+#endif
+
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
 #include <stdio.h>
 #include <sys/select.h>
 #include <errno.h>
 #include <signal.h>
 
-#include "config.h"
-
 #include "shar-utils.h"
 #include <shib/shib-threads.h>
 #include <shib-target/ccache-utils.h>