Added #define _POSIX_HOST_NAME_MAX for OSes that don't know it (NetBSD in detail)
authorMassimiliano Calamelli <mcalamelli@gmail.com>
Tue, 28 Apr 2009 15:50:32 +0000 (15:50 +0000)
committerMassimiliano Calamelli <mcalamelli@gmail.com>
Tue, 28 Apr 2009 15:50:32 +0000 (15:50 +0000)
SVN revision: 40445

src/bin/e.h

index 7e67299..c5c97d0 100644 (file)
 #include <errno.h>
 #include <signal.h>
 
+#ifndef _POSIX_HOST_NAME_MAX
+#define _POSIX_HOST_NAME_MAX 255
+#endif
+
 #ifdef HAVE_ALLOCA_H
 #include <alloca.h>
 #endif