dont-include-endian-h-when-defining-kernel-for-dux-20010628
authorDerrick Brashear <shadow@dementia.org>
Thu, 28 Jun 2001 07:54:41 +0000 (07:54 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 28 Jun 2001 07:54:41 +0000 (07:54 +0000)
otherwise ntohl etc are macros for in-kernel functions we don't have

acconfig.h

index 6372c30..35d3f34 100644 (file)
@@ -9,11 +9,13 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
 #undef HAVE_SOCKET
 
 #if ENDIANESS_IN_SYS_PARAM_H
+# ifndef KERNEL
 #  include <sys/types.h>
 #  include <sys/param.h>
 #  if BYTE_ORDER == BIG_ENDIAN
 #  define WORDS_BIGENDIAN 1
 #  endif
+# endif
 #endif
 
 #undef AFS_AFSDB_ENV