Re: ORBit compile on HPUX (again!)
- From: Dan Newcombe <Newcombe mordor clayton edu>
- To: Jeff Garzik <jgarzik pobox com>
- cc: gnome-list gnome org
- Subject: Re: ORBit compile on HPUX (again!)
- Date: Thu, 28 Jan 1999 17:16:04 -0500 (EST)
connection.c fails to compile because it can not find h_errno (undefined)
In the HPUX header files, h_errno is only defined when
_XOPEN_SOURCE_EXTENDED is defined.
I guess you could say the error is "it don't work otherwise" :)
On Thu, 28 Jan 1999, Jeff Garzik wrote:
> What warnings/errors does this fix, BTW?
>
> Jeff
>
>
>
>
> On Thu, 28 Jan 1999, Dan Newcombe wrote:
>
> >
> > This is about the 5th time I've said this:
> >
> > ORBit fails to build on HPUX (h_errno not defined in connection.c)
> > This fixes it in a rather benign manner:
> >
> > *** src/IIOP/connection.c.orig Thu Jan 28 16:02:23 1999
> > --- src/IIOP/connection.c Thu Jan 28 16:04:02 1999
> > ***************
> > *** 1,5 ****
> > --- 1,11 ----
> > #include "config.h"
> > + #ifndef _XOPEN_SOURCE_EXTENDED
> > + # define _XOPEN_SOURCE_EXTENDED
> > + #endif
> > #include "iiop-endianP.h"
> > + #ifdef _XOPEN_SOURCE_EXTENDED
> > + # undef _XOPEN_SOURCE_EXTENDED
> > + #endif
> > #include "IIOP.h"
> > #include "IIOP-private.h"
> > #include "giop-msg-buffer.h"
> > ***************
> > *** 10,17 ****
> > --- 16,29 ----
> > #include <fcntl.h>
> > #include <sys/socket.h>
> > #include <sys/un.h>
> > + #ifndef _XOPEN_SOURCE_EXTENDED
> > + # define _XOPEN_SOURCE_EXTENDED
> > + #endif
> > #include <arpa/inet.h>
> > #include <netdb.h>
> > + #ifdef _XOPEN_SOURCE_EXTENDED
> > + # undef _XOPEN_SOURCE_EXTENDED
> > + #endif
> > #include <ctype.h>
> > #include <string.h>
> > #include <sys/time.h>
> >
> >
> >
> > --
> > FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
> > To unsubscribe: mail gnome-list-request@gnome.org with
> > "unsubscribe" as the Subject.
> >
> >
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]