fetchmail-friends
[Top] [All Lists]

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

2003-10-28 04:16:09
Hello,
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.

   ifdef SSL_ENABLE
         if (stat("/dev/random", &randstat)  &&
             stat("/dev/urandom", &randstat)) {
           /* Neither /dev/random nor /dev/urandom are present, so add
              entropy to the SSL PRNG a hard way. */
           for (i = 0; i < 10000  &&  ! RAND_status (); ++i) {
             char buf[4];
             struct timeval tv;               #<==
             gettimeofday (&tv, 0);
             buf[0] = tv.tv_usec & 0xF;
             buf[2] = (tv.tv_usec & 0xF0) >> 4;
             buf[3] = (tv.tv_usec & 0xF00) >> 8;
             buf[1] = (tv.tv_usec & 0xF000) >> 12;
             RAND_add (buf, sizeof buf, 0.1);
           }
         }
   #endif /* SSL_ENABLE */

Any help would be appreciated.

Rgds Jürgen
--
Mail: juergen(_dot_)edner(_at_)telejeck(_dot_)de
GPG Key available