OSDN Git Service

* include <endian.h> is not enough, include sys/types.h too
authorBruce Momjian <bruce@momjian.us>
Fri, 30 Nov 2001 17:39:20 +0000 (17:39 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 30 Nov 2001 17:39:20 +0000 (17:39 +0000)
  everywhere.

At least it was now detected correctly.

marko

contrib/pgcrypto/crypt-des.c
contrib/pgcrypto/px.h

index dc14cea..cadbcfd 100644 (file)
@@ -64,7 +64,6 @@
 #include "px-crypt.h"
 
 /* for ntohl/htonl */
-#include <sys/types.h>
 #include <netinet/in.h>
 
 #define _PASSWORD_EFMT1 '_'
index 570dadf..e000883 100644 (file)
  * 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