changeset 17343:8c056932bcc2

Don't include unistd.h if HAVE_UNISTD_H isn't defined.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 25 May 2007 20:06:37 +0000
parents ecf5bf6daa78
children 3c8ccbc4a667 34bf1a607d51 8428beecff2f 5d4a8b5f9ba3 48e26f248251
files config.h.mingw libpurple/prpl.h
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"