Skip to content

Commit 0552f8d

Browse files
committed
Seems we need <errno.h> to be included explicitly now...
1 parent ba62fe3 commit 0552f8d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/backend/libpq/pqformat.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
1717
* Portions Copyright (c) 1994, Regents of the University of California
1818
*
19-
* $Id: pqformat.c,v 1.13 2000/04/12 17:15:14 momjian Exp $
19+
* $Id: pqformat.c,v 1.14 2000/07/08 05:30:33 tgl Exp $
2020
*
2121
*-------------------------------------------------------------------------
2222
*/
@@ -44,20 +44,22 @@
4444
* Use the raw pqcomm.c routines pq_getstring or pq_getbytes
4545
* to fetch data without conversion.
4646
*/
47+
4748
#include "postgres.h"
4849

50+
#include <errno.h>
51+
#ifdef HAVE_SYS_PARAM_H
52+
#include <sys/param.h>
53+
#endif
54+
4955
#include "libpq/libpq.h"
5056
#include "libpq/pqformat.h"
51-
5257
#ifdef MULTIBYTE
5358
#include "mb/pg_wchar.h"
5459
#endif
5560
#ifdef HAVE_ENDIAN_H
5661
#include "endian.h"
5762
#endif
58-
#ifdef HAVE_SYS_PARAM_H
59-
#include <sys/param.h>
60-
#endif
6163

6264
#ifndef BYTE_ORDER
6365
#error BYTE_ORDER must be defined as LITTLE_ENDIAN, BIG_ENDIAN or PDP_ENDIAN

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy