again pgcrypto
* 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
Patch applied. Thanks.
---------------------------------------------------------------------------
* include <endian.h> is not enough, include sys/types.h too
everywhere.At least it was now detected correctly.
--
markoIndex: 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---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026