summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-xpm.c
diff options
context:
space:
mode:
authorHans Breuer <hans@src.gnome.org>2000-11-12 15:58:18 +0000
committerHans Breuer <hans@src.gnome.org>2000-11-12 15:58:18 +0000
commit6bda7a895ea4115042cd0e8339ac0a3e23a6afd7 (patch)
treeb8705810916652d3855d23225c3264599d7fcf82 /gdk-pixbuf/io-xpm.c
parentaceeae34fb8c0e2d99b0e5c82c37232cfccc5c06 (diff)
downloadgtk+-6bda7a895ea4115042cd0e8339ac0a3e23a6afd7.tar.gz
portability fixes and corrected prototypes for self-contained build
Diffstat (limited to 'gdk-pixbuf/io-xpm.c')
-rw-r--r--gdk-pixbuf/io-xpm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk-pixbuf/io-xpm.c b/gdk-pixbuf/io-xpm.c
index df561498f8..e813ae081c 100644
--- a/gdk-pixbuf/io-xpm.c
+++ b/gdk-pixbuf/io-xpm.c
@@ -27,7 +27,9 @@
#include <stdlib.h>
#include <string.h>
#include <glib.h>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h> /* for unlink */
+#endif
#include "gdk-pixbuf-private.h"
#include "gdk-pixbuf-io.h"