summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2001-11-30 17:39:20 +0000
committerBruce Momjian2001-11-30 17:39:20 +0000
commit0c5085a3c442bb36958ff8341c814ffd99c49ef7 (patch)
tree12190b070a5d6b71f4673327e4db7314e6f7c764
parent36c1fb8a539a7a0f1c89c1a575b907e2f924fbfa (diff)
* include <endian.h> is not enough, include sys/types.h too
everywhere. At least it was now detected correctly. marko
-rw-r--r--contrib/pgcrypto/crypt-des.c1
-rw-r--r--contrib/pgcrypto/px.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pgcrypto/crypt-des.c b/contrib/pgcrypto/crypt-des.c
index bcb6b5b5c7..7611e30f7c 100644
--- a/contrib/pgcrypto/crypt-des.c
+++ b/contrib/pgcrypto/crypt-des.c
@@ -64,7 +64,6 @@
#include "px-crypt.h"
/* for ntohl/htonl */
-#include <sys/types.h>
#include <netinet/in.h>
#define _PASSWORD_EFMT1 '_'
diff --git a/contrib/pgcrypto/px.h b/contrib/pgcrypto/px.h
index 4e22245d3e..a170bfcd4b 100644
--- a/contrib/pgcrypto/px.h
+++ b/contrib/pgcrypto/px.h
@@ -32,6 +32,7 @@
#ifndef __PX_H
#define __PX_H
+#include <sys/types.h>
#ifdef HAVE_ENDIAN_H
#include <endian.h>
#endif