You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@znep.com> on 1997/11/16 02:47:24 UTC

[PATCH] don't include netdb.h in mod_unique_id.c

It is already included elsewhere.  It appears that on some systems you
can't include it twice.  

For example, I think this is the cause of the ultrix problems with it.

Index: mod_unique_id.c
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/standard/mod_unique_id.c,v
retrieving revision 1.7
diff -u -r1.7 mod_unique_id.c
--- mod_unique_id.c	1997/10/24 08:56:46	1.7
+++ mod_unique_id.c	1997/11/16 01:39:36
@@ -62,7 +62,6 @@
 #include "http_log.h"
 #include "multithread.h"
 #include <unistd.h>
-#include <netdb.h>
 
 #ifdef MULTITHREAD
 #error sorry this module does not support multithreaded servers yet


Re: [PATCH] don't include netdb.h in mod_unique_id.c

Posted by Dirk-Willem van Gulik <di...@elect6.jrc.it>.
On Sat, 15 Nov 1997, Marc Slemko wrote:

> It is already included elsewhere.  It appears that on some systems you
> can't include it twice.  
> 
> For example, I think this is the cause of the ultrix problems with it.

Yup, I found the same on the new OSF. kill it.

+1

 
> Index: mod_unique_id.c
> ===================================================================
> RCS file: /export/home/cvs/apachen/src/modules/standard/mod_unique_id.c,v
> retrieving revision 1.7
> diff -u -r1.7 mod_unique_id.c
> --- mod_unique_id.c	1997/10/24 08:56:46	1.7
> +++ mod_unique_id.c	1997/11/16 01:39:36
> @@ -62,7 +62,6 @@
>  #include "http_log.h"
>  #include "multithread.h"
>  #include <unistd.h>
> -#include <netdb.h>
>  
>  #ifdef MULTITHREAD
>  #error sorry this module does not support multithreaded servers yet
> 
>