Ignore:
Timestamp:
Jun 15, 2008, 2:28:14 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Remove htons() and htonl() from kernel mode: we use our custom hton16() and hton32() implementations everywhere instead, except in cacaserver which requires <arpa/inet.h> stuff anyway.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/stubs.h

    r2299 r2398  
    5151
    5252/* hton16() and hton32() */
    53 #if defined HAVE_HTONS
    54 #   if defined __KERNEL__
    55         /* Nothing to do */
    56 #   elif defined HAVE_ARPA_INET_H
     53#if defined HAVE_HTONS && !defined __KERNEL__
     54#   if defined HAVE_ARPA_INET_H
    5755#       include <arpa/inet.h>
    5856#   elif defined HAVE_NETINET_IN_H
     
    6260#   define hton32 htonl
    6361#else
    64 #   if defined HAVE_ENDIAN_H
     62#   if defined __KERNEL__
     63        /* Nothing to do */
     64#   elif defined HAVE_ENDIAN_H
    6565#       include <endian.h>
    6666#   endif
Note: See TracChangeset for help on using the changeset viewer.