httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Re: [PATCH] PR#153: unistd.h needs to be included earlier in conf.h
Date Wed, 12 Feb 1997 02:52:07 GMT
This is a workaround, but it isn't the proper fix IMHO.  I think the
problem is we redefine getwd as a macro which messes up something in
unistd.h.  Solaris 2.6 has getwd.  Heck, so does 2.5.

On Mon, 10 Feb 1997, Roy T. Fielding wrote:

> Moves the setting of NO_UNISTD_H or inclusion of <unistd.h> higher in
> the conf.h so that it doesn't result in errors on Solaris 2.6.
> Reported by <martin.englund@sweden.sun.com>.
> 
> .....Roy
> 
> Index: conf.h
> ===================================================================
> RCS file: /export/home/cvs/apache/src/conf.h,v
> retrieving revision 1.77
> diff -c -r1.77 conf.h
> *** conf.h	1997/02/10 00:40:08	1.77
> --- conf.h	1997/02/10 17:00:59
> ***************
> *** 59,64 ****
> --- 59,70 ----
>   #include <sys/param.h>
>   #endif
>   
> + #if defined(NEXT)
> + #define NO_UNISTD_H
> + #else
> + #include <unistd.h>
> + #endif
> + 
>   /* Define one of these according to your system. */
>   #if defined(MPE)
>   #include <setjmp.h>
> ***************
> *** 184,190 ****
>   #undef NO_KILLPG
>   #define NO_SETSID
>   #define NEED_STRDUP
> - #define NO_UNISTD_H
>   #undef _POSIX_SOURCE
>   #ifndef FD_CLOEXEC
>   #define FD_CLOEXEC 1
> --- 190,195 ----
> ***************
> *** 587,596 ****
>   
>   #ifndef LOGNAME_MAX
>   #define LOGNAME_MAX 25
> - #endif
> - 
> - #ifndef NEXT
> - #include <unistd.h>
>   #endif
>   
>   #ifdef ultrix
> --- 592,597 ----
> 


Mime
View raw message