You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2004/04/24 22:41:30 UTC

DO NOT REPLY [Bug 28572] New: - mod_forensic compilation breaks on Win32

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28572>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28572

mod_forensic compilation breaks on Win32

           Summary: mod_forensic compilation breaks on Win32
           Product: Apache httpd-2.0
           Version: 2.1-HEAD
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: support
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: eflash@gmx.net


this patch fixes compilation on Win32 for me since older SDK has no unistd.h; 
and btw. I was also able to compile without unistd.h for NetWare target without 
warnings about missing prototypes, so maybe its obsolete at all....

--- mod_log_forensic.c.orig   Sat Feb 21 18:15:20 2004
+++ mod_log_forensic.c        Tue Apr 20 03:16:42 2004
@@ -30,9 +30,11 @@
 #include "http_log.h"
 #include "apr_strings.h"
 #include "apr_atomic.h"
-#include <unistd.h>
 #include "http_protocol.h"
 #include "test_char.h"
+#if APR_HAVE_UNISTD_H
+#include <unistd.h>
+#endif
 
 module AP_MODULE_DECLARE_DATA log_forensic_module;

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org