Skip to content

Commit 6592a8a

Browse files
committed
cygwin defines BYTE_ORDER in sys/param.h, and has no endian.h ...
1 parent 805ee87 commit 6592a8a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/libpq/pqformat.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* Copyright (c) 1994, Regents of the University of California
1717
*
18-
* $Id: pqformat.c,v 1.4 1999/05/25 16:09:02 momjian Exp $
18+
* $Id: pqformat.c,v 1.4.2.1 1999/09/12 22:25:32 scrappy Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -54,6 +54,9 @@
5454
#ifdef HAVE_ENDIAN_H
5555
#include <endian.h>
5656
#endif
57+
#ifdef HAVE_SYS_PARAM_H
58+
#include <sys/param.h>
59+
#endif
5760

5861
#ifndef BYTE_ORDER
5962
#error BYTE_ORDER must be defined as LITTLE_ENDIAN, BIG_ENDIAN or PDP_ENDIAN

0 commit comments

Comments
 (0)