Code

Removed `gethostbyname' and replaced with protocol independend `getaddrinfo'
[collectd.git] / src / collectd.h
index 1697df70d35beb0e20fb2e43a4a510d89bc40d32..34b026171efd31307eea8a98e1ded0e93e72c2a0 100644 (file)
 # endif
 #endif
 
+#if HAVE_ASSERT_H
+# include <assert.h>
+#else
+# define assert(...) /* nop */
+#endif
+
 #if HAVE_DIRENT_H
 # include <dirent.h>
 # define NAMLEN(dirent) strlen((dirent)->d_name)