]> git.sur5r.net Git - openldap/commitdiff
ITS#7160 get BYTE_ORDER def for HPUX (and Solaris)
authorHoward Chu <hyc@symas.com>
Tue, 21 Feb 2012 19:52:01 +0000 (11:52 -0800)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 21 Feb 2012 20:21:52 +0000 (12:21 -0800)
libraries/libmdb/mdb.c

index 76de0db8d4228f89d990fe7be6b50ccab3a12058..925aae6a9f7fa71fe385a8c247c4e50a3530bf06 100644 (file)
 #include <time.h>
 #include <unistd.h>
 
+#if !(defined(BYTE_ORDER) || defined(__BYTE_ORDER))
+#include <resolv.h>    /* defines BYTE_ORDER on HPUX and Solaris */
+#endif
+
 #ifndef _WIN32
 #include <pthread.h>
 #ifdef __APPLE__