projects
/
platform
/
upstream
/
libexif.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
401b94b
)
2003-10-28 Lutz Mueller <lutz@users.sourceforge.net>
author
Lutz Mueller
<lutz.s.mueller@gmail.com>
Tue, 28 Oct 2003 18:49:47 +0000
(19:49 +0100)
committer
Lutz Mueller
<lutz.s.mueller@gmail.com>
Tue, 28 Oct 2003 18:49:47 +0000
(19:49 +0100)
* libjpeg/jpeg-data.c: Do not depend on unistd.h. Reported by
Jan Patera <patera@pictview.com>.
libjpeg/jpeg-data.c
patch
|
blob
|
history
diff --git
a/libjpeg/jpeg-data.c
b/libjpeg/jpeg-data.c
index
f6a4ca2
..
c6e36c7
100644
(file)
--- a/
libjpeg/jpeg-data.c
+++ b/
libjpeg/jpeg-data.c
@@
-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
@@
jpeg_data_save_file (JPEGData *data, const char *path)
if (!d)
return;
+#ifdef HAVE_UNISTD_H
unlink (path);
+#endif
f = fopen (path, "wb");
if (!f) {
free (d);