aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-07-08 05:30:33 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-07-08 05:30:33 +0000
commit0552f8dfe750c17bed18e134a7f4c205693db335 (patch)
treea64494c530b2f6b6c424b03e2719880fd0ed9d3c /src
parentba62fe32c391a33eac533b0cc4d4c163e4844c56 (diff)
downloadpostgresql-0552f8dfe750c17bed18e134a7f4c205693db335.tar.gz
postgresql-0552f8dfe750c17bed18e134a7f4c205693db335.zip
Seems we need <errno.h> to be included explicitly now...
Diffstat (limited to 'src')
-rw-r--r--src/backend/libpq/pqformat.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/backend/libpq/pqformat.c b/src/backend/libpq/pqformat.c
index 7275893c5c0..a591e4ead55 100644
--- a/src/backend/libpq/pqformat.c
+++ b/src/backend/libpq/pqformat.c
@@ -16,7 +16,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pqformat.c,v 1.13 2000/04/12 17:15:14 momjian Exp $
+ * $Id: pqformat.c,v 1.14 2000/07/08 05:30:33 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -44,20 +44,22 @@
* Use the raw pqcomm.c routines pq_getstring or pq_getbytes
* to fetch data without conversion.
*/
+
#include "postgres.h"
+#include <errno.h>
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+
#include "libpq/libpq.h"
#include "libpq/pqformat.h"
-
#ifdef MULTIBYTE
#include "mb/pg_wchar.h"
#endif
#ifdef HAVE_ENDIAN_H
#include "endian.h"
#endif
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
#ifndef BYTE_ORDER
#error BYTE_ORDER must be defined as LITTLE_ENDIAN, BIG_ENDIAN or PDP_ENDIAN