pkgsrc/net/slurm/patches/patch-aa
joerg 8fe5b9357d Add DragonFly and try to fix the reliance on zeroness of undefined
symbols. Feature tests should be done with defined() after all.
2006-02-24 19:25:33 +00:00

69 lines
2 KiB
Text

$NetBSD: patch-aa,v 1.3 2006/02/24 19:25:33 joerg Exp $
--- os.h.orig 2006-02-24 19:13:28.000000000 +0000
+++ os.h
@@ -33,8 +33,8 @@
# endif
#endif
-#if defined (__FreeBSD__) || (__OpenBSD__) || (__NetBSD__) \
- || (__MicroBSD__) || (__APPLE__) || (__DragonFly__)
+#if defined (__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \
+ || defined(__MicroBSD__) || defined(__APPLE__) || defined(__DragonFly__)
#define _HAVE_BSD
#define _HAVE_CHECKINTERFACE
#elif __HPUX__
@@ -69,7 +69,7 @@
#include <sys/mib.h>
#include <arpa/inet.h>
#include <net/if.h>
-#elif __FreeBSD__ /* F R E E B S D */
+#elif defined(__FreeBSD__) || defined(__DragonFly__) /* F R E E B S D */
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
@@ -96,7 +96,7 @@
#include <net/ppp_defs.h>
#include <net/if_ppp.h>
#endif
-#elif __NetBSD__ /* N E T B S D */
+#elif defined(__NetBSD__) /* N E T B S D */
#include <stdio.h>
#include <sys/param.h>
#include <sys/sysctl.h>
@@ -123,7 +123,7 @@
#include <net/ppp_defs.h>
#include <net/if_ppp.h>
#include <net/if.h>
-#elif __OpenBSD__ || __MicroBSD__ /* O P E N B S D */
+#elif defined(__OpenBSD__) || defined(__MicroBSD__) /* O P E N B S D */
#include <stdio.h>
#include <sys/param.h>
#include <sys/sysctl.h>
@@ -149,7 +149,7 @@
#include <arpa/inet.h>
#include <net/ppp_defs.h>
#include <net/if_ppp.h>
-#elif __APPLE__ /* Mac OS X */
+#elif defined(__APPLE__) /* Mac OS X */
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
@@ -175,7 +175,7 @@
#include <net/if_media.h>
#include <net/if_mib.h>
#include <arpa/inet.h>
-#elif __linux__ /* L I N U X */
+#elif defined(__linux__) /* L I N U X */
#include <stdio.h>
#include <sys/param.h>
#include <sys/sysctl.h>
@@ -198,7 +198,7 @@
#include <arpa/inet.h>
#include <net/ppp_defs.h>
#include <net/if_ppp.h>
-#elif __Solaris__ /* S O L A R I S */
+#elif defined(__Solaris__) /* S O L A R I S */
#include <stdio.h>
#define NO_CURSES_E 1
#define _WIDEC_H