mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
From: "D'Arcy J.M. Cain" <darcy@druid.net>
Subject: [HACKERS] libpq/pqcomm stuff and Solaris byte order I decided to go ahead with the required changes since no one else seems to. I don't guarantee that it is perfect but with these changes the package actually compiles. While I was at it I added to the Sparc Solaris header to define the byte order. Note that NetBSD sets this in the system headers so it wasn't required there. In particular, someone may want to check whether I removed the correct 84 lines from backend/libpq/pqcomprim.c.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: pqcomm.h,v 1.9 1997/03/16 18:50:47 scrappy Exp $
|
||||
* $Id: pqcomm.h,v 1.10 1997/03/20 18:23:03 scrappy Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Some of this should move to libpq.h
|
||||
@ -126,8 +126,16 @@ extern int PQAsyncNotifyWaiting;
|
||||
/* in pqcompriv.c */
|
||||
int pqGetShort(int *, FILE *);
|
||||
int pqGetLong(int *, FILE *);
|
||||
int pqGetNBytes(char *, size_t, FILE *);
|
||||
int pqGetString(char *, size_t, FILE *);
|
||||
int pqGetByte(FILE *);
|
||||
|
||||
int pqPutShort(int, FILE *);
|
||||
int pqPutLong(int, FILE *);
|
||||
int pqPutNBytes(const char *, size_t, FILE *);
|
||||
int pqPutString(const char *, FILE *);
|
||||
int pqPutByte(int, FILE *);
|
||||
|
||||
/*
|
||||
* prototypes for functions in pqpacket.c
|
||||
*/
|
||||
|
Reference in New Issue
Block a user