Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Aug 2002 11:32:47 +0200
From:      Gianmarco Giovannelli <gmarco@giovannelli.it>
To:        questions@freebsd.org
Subject:   recursive include, why FreeBSD not ?
Message-ID:  <5.1.1.6.2.20020818112527.0178a268@194.184.65.4>

next in thread | raw e-mail | index | archive | help
I have a piece of code like this:

#if defined(__OpenBSD__)
         #define __BYTE_ORDER BYTE_ORDER
         #define __LITTLE_ENDIAN LITTLE_ENDIAN
         #define __BIG_ENDIAN BIG_ENDIAN
#endif

[...]

#if defined(__FreeBSD__)
        #include <sys/types.h>
        #define __BYTE_ORDER BYTE_ORDER
        #define __LITTLE_ENDIAN LITTLE_ENDIAN
        #define __BIG_ENDIAN BIG_ENDIAN
#endif


If I remove the:
  #include <sys/types.h>
it doesn't compile while OpenBSD and Linux compile clean...

Any idea ?


Best Regards,
Gianmarco Giovannelli ,  "Unix expert since yesterday"
http://www.gufi.org/~gmarco



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.1.6.2.20020818112527.0178a268>