summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2001-11-30 17:39:20 +0000
committerBruce Momjian2001-11-30 17:39:20 +0000
commit8f73bb4da96acd523080c70d7cd50a1084b84225 (patch)
tree1741d313ffd5cf0bf1c1e6604c7d2316207e3a5e
parent97ce818897e4df217e5c3f0f0625de0b0829ced2 (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.h3
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pgcrypto/crypt-des.c b/contrib/pgcrypto/crypt-des.c
index dc14ceae66..cadbcfd182 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 570dadf919..e000883d39 100644
--- a/contrib/pgcrypto/px.h
+++ b/contrib/pgcrypto/px.h
@@ -26,12 +26,13 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: px.h,v 1.6 2001/11/29 19:40:37 momjian Exp $
+ * $Id: px.h,v 1.7 2001/11/30 17:39:20 momjian Exp $
*/
#ifndef __PX_H
#define __PX_H
+#include <sys/types.h>
#ifdef HAVE_ENDIAN_H
#include <endian.h>
#endif