fetchmail-friends
[Top] [All Lists]

Re: [fetchmail] Re: The 6.2.5 release of fetchmail is available

2003-10-29 09:37:51
"Gerd v. Egidy" <lists(_at_)egidy(_dot_)de> writes:

due to the fact that the answer from Matthias Andree didn't help
me getting Fetchmail 6.2.5 compiled on my box. I wonder if there
is an other way to solve the problem.
The error message 'storage size of `tv' isn't known' seems to be
caused by an invalid variable declaration, but I'm not a programmer
so I don't know how to solve it.

try this patch and report if it solved your problems.

diff -r -u fetchmail-6.2.5.orig/socket.c fetchmail-6.2.5/socket.c
--- fetchmail-6.2.5.orig/socket.c     2003-10-10 12:32:15.000000000 +0200
+++ fetchmail-6.2.5/socket.c  2003-10-27 16:05:01.000000000 +0100
@@ -15,6 +15,7 @@
 #endif /* HAVE_MEMORY_H */
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/time.h>
 #ifndef HAVE_NET_SOCKET_H
 #include <sys/socket.h>
 #else

Bogus.

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.

-- 
Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95

<Prev in Thread] Current Thread [Next in Thread>