* include <endian.h> is not enough, include sys/types.h too
everywhere.
At least it was now detected correctly.
--
marko
Index: contrib/pgcrypto/crypt-des.c
===================================================================
RCS file: /opt/cvs/pgsql/pgsql/contrib/pgcrypto/crypt-des.c,v
retrieving revision 1.8
diff -u -r1.8 crypt-des.c
--- contrib/pgcrypto/crypt-des.c 29 Nov 2001 19:40:37 -0000 1.8
+++ contrib/pgcrypto/crypt-des.c 29 Nov 2001 23:09:06 -0000
@@ -64,7 +64,6 @@
#include "px-crypt.h"
/* for ntohl/htonl */
-#include <sys/types.h>
#include <netinet/in.h>
#define _PASSWORD_EFMT1 '_'
Index: contrib/pgcrypto/px.h
===================================================================
RCS file: /opt/cvs/pgsql/pgsql/contrib/pgcrypto/px.h,v
retrieving revision 1.6
diff -u -r1.6 px.h
--- contrib/pgcrypto/px.h 29 Nov 2001 19:40:37 -0000 1.6
+++ contrib/pgcrypto/px.h 29 Nov 2001 23:09:27 -0000
@@ -32,6 +32,7 @@
#ifndef __PX_H
#define __PX_H
+#include <sys/types.h>
#ifdef HAVE_ENDIAN_H
#include <endian.h>
#endif