again pgcrypto

From: Marko Kreen <marko(at)l-t(dot)ee>
To: pgsql-patches(at)postgresql(dot)org
Subject: again pgcrypto
Date: 2001-11-30 10:07:31
Message-ID: 20011130120731.A32716@l-t.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


* 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

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Weiping He 2001-11-30 15:06:26 updated zh_CN NLS patch
Previous Message Bruce Momjian 2001-11-29 19:40:29 Re: pgcrypto BYTE_ENDIAN fix