Quoting from Matthias Andree's mail on Wed, Oct 29, 2003 at 05:37:45PM +0100:
The canonical code is in (autoconf.info)Default Includes:
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
And should therefore best be put in a compat.h header.
This requires AC_HEADER_TIME in configure.ac.
Here is a patch which does this. Also, it fixes the following
problems:
- The configure script tests only for existence of directories when
searching for ssl headers. Since /usr probably exists on all
systems, the script thinks that the headers should be necessarily
under /usr/include!
- The configure script tests for /usr/include/ssl/ssl.h. However,
socket.c has include lines of the form:
#include <openssl/header.h>
Assuming socket.c is right, the configure script should search only
for ssl.h under include/openssl.
- The configure script does not complain if ssl.h is not found. If the
configure script is run as:
./configure --with-ssl=/this/directory/does/not/exist
the configure script does not complain about the missing ssl.h
header.
- gcc complains about including the system directory /usr/include
while compiling.
- parameters of fwrite() should be reverse in sink.c.
- more fixes for minor compiler warnings.
--
Sunil Shetye.
fetchmail-6.2.5-gcc.patch
Description: Text document