You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Randy Terbush <ra...@zyzzyva.com> on 1995/08/23 15:23:17 UTC
Re: fix for BSDI 1.1 (fwd)
The following patch fixes the problem reported below. The problem
is caused by some inconsistencies in older versions of BSDI which
did not put (ie #ifndef NETINET_IN_H) wrappers in their system includes.
The inclucsion does cause an error in the compile.
This is another good argument for supplying a binary distribution
as Rob H suggested yesterday. I think that *could* reduce the
number of compiler warning/errors that are reported.
--- rfc931.c Wed Aug 23 08:13:38 1995
***************
*** 92,102 ****
--- 92,109 ----
#include <stdio.h>
#include <syslog.h>
+ #include <sys/param.h>
#include <sys/types.h>
#ifndef ULTRIX_BRAIN_DEATH
#include <sys/socket.h>
#endif
+ #ifdef __bsdi__
+ #if _BSDI_VERSION > 199312
#include <netinet/in.h>
+ #endif
+ #else
+ #include <netinet/in.h>
+ #endif
#include <setjmp.h>
#include <signal.h>
#ifndef NEXT
> Forwarded message:
> > From jsd@cyborganic.com Mon Aug 21 16:04:55 1995
> > Date: Mon, 21 Aug 1995 16:04:30 -0700
> > Message-Id: <ac5e5fe20402100391cc@[140.174.95.102]>
> > Mime-Version: 1.0
> > Content-Type: text/plain; charset="us-ascii"
> > To: apache-bugs@apache.org
> > From: jsd@cyborganic.com (Jon Drukman)
> > Subject: fix for BSDI 1.1
> >
> > in the file rfc931.c, the following bit of code
> >
> > /* System libraries. */
> >
> > #include <stdio.h>
> > #include <syslog.h>
> > #include <sys/types.h>
> > #ifndef ULTRIX_BRAIN_DEATH
> > #include <sys/socket.h>
> > #endif
> > #include <netinet/in.h>
> > #include <setjmp.h>
> > #include <signal.h>
> > #ifndef NEXT
> > #include <unistd.h>
> > #endif
> >
> > causes problems on BSDI 1.1 the solution is comment out #include <netinet/in.h>
> >
> > if you do this, it compiles without so much as a warning...
> >
> > maybe you can ifdef it or something.
> >
> >
> > --
> > Name: Jon
> > Email: jsd@cyborganic.com
> > Web: http://www.cyborganic.com/People/jsd
> >
> >
> >