From 67b4244a988c7fdd35f34dec5cb58e071852eb0c Mon Sep 17 00:00:00 2001 From: Lutz Mueller Date: Tue, 28 Oct 2003 19:53:44 +0100 Subject: [PATCH] 2003-10-28 Lutz Mueller * libjpeg/jpeg-data.c: Do not depend on unistd.h. Reported by Jan Patera . --- ChangeLog | 5 +++++ libjpeg/jpeg-data.c | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 27502c5..6faf060 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-10-28 Lutz Mueller + + * libjpeg/jpeg-data.c: Do not depend on unistd.h. Reported by + Jan Patera . + 2003-10-27 Lutz Mueller * libexif: Canon maker notes seem to work now (both loading and diff --git a/libjpeg/jpeg-data.c b/libjpeg/jpeg-data.c index c6e36c7..7067d97 100644 --- a/libjpeg/jpeg-data.c +++ b/libjpeg/jpeg-data.c @@ -25,10 +25,6 @@ #include #include -#ifdef HAVE_UNISTD_H -#include -#endif - /* #define DEBUG */ struct _JPEGDataPrivate @@ -84,9 +80,7 @@ jpeg_data_save_file (JPEGData *data, const char *path) if (!d) return; -#ifdef HAVE_UNISTD_H - unlink (path); -#endif + remove (path); f = fopen (path, "wb"); if (!f) { free (d); -- 2.7.4