apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad Nicholes" <BNICHO...@novell.com>
Subject Re: cvs commit: apr/misc/unix getuuid.c
Date Fri, 30 Nov 2001 19:43:39 GMT
According to the comment next to it, it is needed for gettimeofday(). 
NetWare doesn't have the gettimeofday() function.  We had to implement
that functionality in a totally different way.  Also, we do have a
version of sys/time.h on NetWare so I would just leave it if it didn't
conflict with some of the Winsock headers.

 

>>> Jeff Trawick <trawick@attglobal.net> Friday, November 30, 2001
12:29:48 PM >>>
bnicholes@apache.org writes:

> bnicholes    01/11/30 11:03:57
> 
>   Modified:    misc/unix getuuid.c
>   Log:
>   Removed an unneeded header on NetWare

>    #include <unistd.h>     /* for getpid, gethostname */
>    #include <stdlib.h>     /* for rand, srand */
>   +
>   +#ifndef NETWARE
>    #include <sys/time.h>   /* for gettimeofday */
>   +#endif

what does "unneeded" mean?

if you can include it without pain, please continue do so without
ifdef

if NETWARE doesn't have it, please use

#ifdef APR_HAVE_SYS_TIME_H
#include <sys/time.h>
#endif

if NETWARE has it and sometimes needs to include it but it breaks
something here then more info is required to determine the correct fix

-- 
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/ 
             Born in Roswell... married an alien...

Mime
View raw message