diff -Naur wv.orig/getopt.c wv/getopt.c --- wv.orig/getopt.c Sat Sep 2 21:04:10 2000 +++ wv/getopt.c Thu Jan 25 10:16:47 2001 @@ -70,7 +70,9 @@ /* Don't include stdlib.h for non-GNU C libraries because some of them contain conflicting prototypes for getopt. */ #include +#ifdef HAVE_UNISTD_H #include +#endif #endif /* GNU C library. */ #ifdef VMS diff -Naur wv.orig/gtk/tester.c wv/gtk/tester.c --- wv.orig/gtk/tester.c Fri Dec 8 06:01:22 2000 +++ wv/gtk/tester.c Thu Jan 25 10:16:47 2001 @@ -5,7 +5,9 @@ #include #include #include +#ifdef HAVE_UNISTD_H #include +#endif #include #ifndef MAXPATH diff -Naur wv.orig/libole2/ms-ole.c wv/libole2/ms-ole.c --- wv.orig/libole2/ms-ole.c Thu Jan 25 08:52:46 2001 +++ wv/libole2/ms-ole.c Thu Jan 25 10:18:10 2001 @@ -10,6 +10,10 @@ #include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + /* BSDs require unistd.h before including stat.h */ #ifdef HAVE_UNISTD_H #include @@ -23,20 +27,13 @@ #include #include -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "ms-ole.h" #ifdef HAVE_MMAP #include #endif -#ifdef HAVE_UNISTD_H -# include -#else - +#ifndef HAVE_UNISTD_H #if 0 #include #endif diff -Naur wv.orig/magick/magick.h wv/magick/magick.h --- wv.orig/magick/magick.h Sat Sep 2 21:04:34 2000 +++ wv/magick/magick.h Thu Jan 25 10:16:47 2001 @@ -4,6 +4,10 @@ #ifndef _MAGICK_H #define _MAGICK_H +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #if defined(sun) #define __EXTENSIONS__ 1 #endif @@ -33,7 +37,9 @@ #if defined(_VISUALC_) #include #else +#ifdef HAVE_UNISTD_H #include +#endif #endif #include #include diff -Naur wv.orig/wvConvert.c wv/wvConvert.c --- wv.orig/wvConvert.c Fri Dec 8 06:01:20 2000 +++ wv/wvConvert.c Thu Jan 25 10:16:47 2001 @@ -1,11 +1,10 @@ -#include -#include -#include -/* already done in wv.h - #include "config.h" -*/ #ifdef HAVE_CONFIG_H #include "config.h" +#endif +#include +#include +#ifdef HAVE_UNISTD_H +#include #endif #include "wv.h" #include "getopt.h" diff -Naur wv.orig/wvRTF.c wv/wvRTF.c --- wv.orig/wvRTF.c Wed Dec 27 18:48:33 2000 +++ wv/wvRTF.c Thu Jan 25 10:16:47 2001 @@ -1,13 +1,15 @@ -#include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include +#include #include #include +#ifdef HAVE_UNISTD_H #include +#endif #include -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif #include "getopt.h" #include "wv.h" diff -Naur wv.orig/wvWare.c wv/wvWare.c --- wv.orig/wvWare.c Thu Dec 28 16:50:53 2000 +++ wv/wvWare.c Thu Jan 25 10:16:47 2001 @@ -1,10 +1,12 @@ -#include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include +#include #include #include +#ifdef HAVE_UNISTD_H #include -#ifdef HAVE_CONFIG_H -#include "config.h" #endif #include "wv.h" #include "getopt.h"