Ignore:
Timestamp:
Nov 8, 2006, 2:12:06 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Don't try to include arpa/inet.h in kernel mode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/common.h

    r1303 r1304  
    1818 */
    1919
    20 #if defined(HAVE_INTTYPES_H) && !defined(__KERNEL__)
     20#if defined HAVE_INTTYPES_H && !defined __KERNEL__
    2121#   include <inttypes.h>
    2222#else
     
    3333#endif
    3434
    35 #if defined(HAVE_HTONS)
    36 #   if defined(HAVE_ARPA_INET_H)
     35#if defined HAVE_HTONS
     36#   if defined __KERNEL__
     37        /* Nothing to do */
     38#   elif defined HAVE_ARPA_INET_H
    3739#       include <arpa/inet.h>
    38 #   elif defined(HAVE_NETINET_IN_H)
     40#   elif defined HAVE_NETINET_IN_H
    3941#       include <netinet/in.h>
    4042#   endif
     
    4244#   define hton32 htonl
    4345#else
    44 #   if defined(HAVE_ENDIAN_H)
     46#   if defined HAVE_ENDIAN_H
    4547#       include <endian.h>
    4648#   endif
     
    4850{
    4951    /* This is compile-time optimised with at least -O1 or -Os */
    50 #if defined(HAVE_ENDIAN_H)
     52#if defined HAVE_ENDIAN_H
    5153    if(__BYTE_ORDER == __BIG_ENDIAN)
    5254#else
     
    6264{
    6365    /* This is compile-time optimised with at least -O1 or -Os */
    64 #if defined(HAVE_ENDIAN_H)
     66#if defined HAVE_ENDIAN_H
    6567    if(__BYTE_ORDER == __BIG_ENDIAN)
    6668#else
     
    7577#endif
    7678
    77 #if defined(__KERNEL__)
    78 #undef HAVE_ERRNO_H
     79#if defined __KERNEL__
     80#   undef HAVE_ERRNO_H
    7981#endif
     82
Note: See TracChangeset for help on using the changeset viewer.