diff --git a/contrib/pgcrypto/blf.c b/contrib/pgcrypto/blf.c index e465bfe48a42da02d24d334f5113360d8b95ce11..bab59c150408b45dd352d7becb3f419b9028ea67 100644 --- a/contrib/pgcrypto/blf.c +++ b/contrib/pgcrypto/blf.c @@ -41,6 +41,8 @@ */ #include <postgres.h> +#include "px.h" + #include "blf.h" #undef inline diff --git a/contrib/pgcrypto/crypt-blowfish.c b/contrib/pgcrypto/crypt-blowfish.c index 8ec2b188e04260d9491921757d129328b61765bf..8e41771be98dcdac1cfbb23063c7386d2b049d56 100644 --- a/contrib/pgcrypto/crypt-blowfish.c +++ b/contrib/pgcrypto/crypt-blowfish.c @@ -32,7 +32,9 @@ #include "postgres.h" +#include "px.h" #include "px-crypt.h" + #define __set_errno(v) #ifndef __set_errno diff --git a/contrib/pgcrypto/crypt-des.c b/contrib/pgcrypto/crypt-des.c index 782f4c0ddbdcb36991c849e889d60243646b05ac..dc14ceae66d287fa491ee8205bd34fbfe859dec7 100644 --- a/contrib/pgcrypto/crypt-des.c +++ b/contrib/pgcrypto/crypt-des.c @@ -60,6 +60,7 @@ #include "postgres.h" +#include "px.h" #include "px-crypt.h" /* for ntohl/htonl */ diff --git a/contrib/pgcrypto/crypt-gensalt.c b/contrib/pgcrypto/crypt-gensalt.c index 9c017b0e4d0e755fc0afabd82ce03a6b43dde421..c58e794789fd45d83860d410f9339a7bb2ac5f31 100644 --- a/contrib/pgcrypto/crypt-gensalt.c +++ b/contrib/pgcrypto/crypt-gensalt.c @@ -12,6 +12,7 @@ #include "postgres.h" +#include "px.h" #include "px-crypt.h" #include <errno.h> diff --git a/contrib/pgcrypto/md5.c b/contrib/pgcrypto/md5.c index 4b03f196067b760618e75aee171a047a171e54ae..a44ea6f85787aec4a36980659b5f15c6eed814bb 100644 --- a/contrib/pgcrypto/md5.c +++ b/contrib/pgcrypto/md5.c @@ -1,4 +1,4 @@ -/* $Id: md5.c,v 1.8 2001/10/25 05:49:19 momjian Exp $ */ +/* $Id: md5.c,v 1.9 2001/11/29 19:40:37 momjian Exp $ */ /* $KAME: md5.c,v 1.3 2000/02/22 14:01:17 itojun Exp $ */ /* @@ -31,6 +31,7 @@ */ #include "postgres.h" +#include "px.h" #include "md5.h" diff --git a/contrib/pgcrypto/px.h b/contrib/pgcrypto/px.h index 9cfa86d8b7d94e284619e23a373167090ee59f87..570dadf9198b82f492ac3d7935eea9a72e0d8057 100644 --- a/contrib/pgcrypto/px.h +++ b/contrib/pgcrypto/px.h @@ -26,12 +26,21 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: px.h,v 1.5 2001/11/20 15:50:53 momjian Exp $ + * $Id: px.h,v 1.6 2001/11/29 19:40:37 momjian Exp $ */ #ifndef __PX_H #define __PX_H +#ifdef HAVE_ENDIAN_H +#include <endian.h> +#endif + +#ifndef BYTE_ORDER +#error BYTE_ORDER must be defined as LITTLE_ENDIAN or BIG_ENDIAN +#endif + + #if 1 #define px_alloc(s) palloc(s) diff --git a/contrib/pgcrypto/rijndael.c b/contrib/pgcrypto/rijndael.c index ad90bd9dbee43122c9d86b7cb00e56eef276a1a7..fd4572a8e994bd3800b78c9495fb801c1680b060 100644 --- a/contrib/pgcrypto/rijndael.c +++ b/contrib/pgcrypto/rijndael.c @@ -39,6 +39,7 @@ Mean: 500 cycles = 51.2 mbits/sec */ #include <postgres.h> +#include "px.h" #include "rijndael.h" diff --git a/contrib/pgcrypto/sha1.c b/contrib/pgcrypto/sha1.c index 01bd072089fba8108481242c0430095236874526..4f9a1b39849a7e104547b003e1103e58597e239a 100644 --- a/contrib/pgcrypto/sha1.c +++ b/contrib/pgcrypto/sha1.c @@ -1,4 +1,4 @@ -/* $Id: sha1.c,v 1.10 2001/11/05 17:46:23 momjian Exp $ */ +/* $Id: sha1.c,v 1.11 2001/11/29 19:40:37 momjian Exp $ */ /* $KAME: sha1.c,v 1.3 2000/02/22 14:01:18 itojun Exp $ */ /* @@ -36,6 +36,7 @@ */ #include "postgres.h" +#include "px.h" #include "sha1.h"