Code

rewrite #elif to be compatible with traditional C
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>
Wed, 9 Apr 2003 03:44:29 +0000 (03:44 +0000)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>
Wed, 9 Apr 2003 03:44:29 +0000 (03:44 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@482 f882894a-f735-0410-b71e-b25c423dba1c

plugins/common.h

index af9795259da3c5d436297d147ac489d9b847dbd7..280333e0e31d3fac980db28369e82ee2ee9ca349 100644 (file)
 
 #if HAVE_LWRES_NETDB_H
 #include <lwres/netdb.h>
-#elif !HAVE_GETADDRINFO
-#include "getaddrinfo.h"
 #else
-#include <netdb.h>
+# if !HAVE_GETADDRINFO
+#  include "getaddrinfo.h"
+# else
+#  include <netdb.h>
+# endif
 #endif
 
 /*