Don't include unistd.h if HAVE_UNISTD_H isn't defined.

Fri, 25 May 2007 20:06:37 +0000

author
Daniel Atallah <datallah@pidgin.im>
date
Fri, 25 May 2007 20:06:37 +0000
changeset 17392
e88a54874d37
parent 17391
295a60226a56
child 17393
51c05011c295
child 17394
ebe5e0e583da
child 17399
4b33b14a5459
child 17843
d338ef340c8a
child 20505
e011c439730b

Don't include unistd.h if HAVE_UNISTD_H isn't defined.

config.h.mingw file | annotate | diff | comparison | revisions
libpurple/prpl.h file | annotate | diff | comparison | revisions
--- a/config.h.mingw	Fri May 25 19:23:36 2007 +0000
+++ b/config.h.mingw	Fri May 25 20:06:37 2007 +0000
@@ -306,7 +306,7 @@
 /* #undef HAVE_TZNAME */
 
 /* Define to 1 if you have the <unistd.h> header file. */
-#define HAVE_UNISTD_H 1
+/*#define HAVE_UNISTD_H 1*/
 
 /* Define to 1 if you have the `vprintf' function. */
 #define HAVE_VPRINTF 1
--- a/libpurple/prpl.h	Fri May 25 19:23:36 2007 +0000
+++ b/libpurple/prpl.h	Fri May 25 20:06:37 2007 +0000
@@ -54,7 +54,9 @@
  */
 #define NO_BUDDY_ICONS {NULL, 0, 0, 0, 0, 0, 0}
 
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 
 #include "blist.h"
 #include "conversation.h"

mercurial