From: Marc G. Fournier Date: Sun, 12 Sep 1999 22:27:47 +0000 (+0000) Subject: cygwin doesn't have an endian.h, but defines BYTE_ORDER in sys/param.h X-Git-Tag: REL7_0~1518 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b7777bfa2e11362baed00e0ad84fa0912e53248;p=postgresql cygwin doesn't have an endian.h, but defines BYTE_ORDER in sys/param.h --- diff --git a/src/backend/libpq/pqformat.c b/src/backend/libpq/pqformat.c index f6de4af171..098c41dc52 100644 --- a/src/backend/libpq/pqformat.c +++ b/src/backend/libpq/pqformat.c @@ -15,7 +15,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pqformat.c,v 1.9 1999/09/11 22:28:05 tgl Exp $ + * $Id: pqformat.c,v 1.10 1999/09/12 22:27:47 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -54,6 +54,9 @@ #ifdef HAVE_ENDIAN_H #include "endian.h" #endif +#ifdef HAVE_SYS_PARAM_H +#include +#endif #ifndef BYTE_ORDER #error BYTE_ORDER must be defined as LITTLE_ENDIAN, BIG_ENDIAN or PDP_ENDIAN