Update of /cvsroot/libexif/libexif/libjpeg
In directory sc8-pr-cvs1:/tmp/cvs-serv5033/libjpeg
Modified Files:
jpeg-data.c
Log Message:
2003-10-28 Lutz Mueller <lu...@us...>
* libjpeg/jpeg-data.c: Do not depend on unistd.h. Reported by
Jan Patera <pa...@pi...>.
Index: jpeg-data.c
===================================================================
RCS file: /cvsroot/libexif/libexif/libjpeg/jpeg-data.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- jpeg-data.c 28 Sep 2003 18:00:06 -0000 1.13
+++ jpeg-data.c 28 Oct 2003 18:49:47 -0000 1.14
@@ -23,9 +23,12 @@
#include <stdlib.h>
#include <stdio.h>
-#include <unistd.h>
#include <string.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
/* #define DEBUG */
struct _JPEGDataPrivate
@@ -81,7 +84,9 @@
if (!d)
return;
+#ifdef HAVE_UNISTD_H
unlink (path);
+#endif
f = fopen (path, "wb");
if (!f) {
free (d);
|