Amazing the difference between an "and" and an "or".
authorEric Andersen <andersen@codepoet.org>
Wed, 14 Mar 2001 01:36:52 +0000 (01:36 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 14 Mar 2001 01:36:52 +0000 (01:36 -0000)
busybox.h
include/busybox.h

index 977fe33..194fd82 100644 (file)
--- a/busybox.h
+++ b/busybox.h
 #include "dmalloc.h"
 #endif
 
+#include <features.h>
 /* Stupid libc doesn't have a reliable way for use to know 
  * that libc5 is being used.   Assume this is good enough */ 
-#if ! defined __GLIBC__ || ! defined __UCLIBC__
+#if ! defined __GLIBC__ && ! defined __UCLIBC__
 /* libc5 doesn't define socklen_t */
 typedef unsigned int socklen_t;
 #endif 
index 977fe33..194fd82 100644 (file)
 #include "dmalloc.h"
 #endif
 
+#include <features.h>
 /* Stupid libc doesn't have a reliable way for use to know 
  * that libc5 is being used.   Assume this is good enough */ 
-#if ! defined __GLIBC__ || ! defined __UCLIBC__
+#if ! defined __GLIBC__ && ! defined __UCLIBC__
 /* libc5 doesn't define socklen_t */
 typedef unsigned int socklen_t;
 #endif