Skip to content

Commit 94bd4e3

Browse files
committed
Update to PyGreSQL 2.3.
1 parent 86dacdb commit 94bd4e3

File tree

23 files changed

+49
-5161
lines changed

23 files changed

+49
-5161
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*
2929
* Copyright (c) 1994, Regents of the University of California
3030
*
31-
* $Id: pqcomm.c,v 1.69 1999/05/04 23:39:20 tgl Exp $
31+
* $Id: pqcomm.c,v 1.70 1999/05/10 16:10:34 momjian Exp $
3232
*
3333
*-------------------------------------------------------------------------
3434
*/
@@ -202,6 +202,11 @@ StreamServerPort(char *hostName, short portName, int *fdP)
202202
pqdebug("%s", PQerrormsg);
203203
return STATUS_ERROR;
204204
}
205+
206+
#ifdef ONLY_REUSE_INET_SOCKETS
207+
if (family == AF_INET) {
208+
#endif
209+
205210
if ((setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char *) &one,
206211
sizeof(one))) == -1)
207212
{
@@ -212,6 +217,11 @@ StreamServerPort(char *hostName, short portName, int *fdP)
212217
pqdebug("%s", PQerrormsg);
213218
return STATUS_ERROR;
214219
}
220+
221+
#ifdef ONLY_REUSE_INET_SOCKETS
222+
}
223+
#endif
224+
215225
MemSet((char *) &saddr, 0, sizeof(saddr));
216226
saddr.sa.sa_family = family;
217227
if (family == AF_UNIX)

src/include/port/sco.h

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,45 @@
11
#include <limits.h> /* For _POSIX_PATH_MAX */
22

3+
#ifndef MAXPATHLEN
34
#define MAXPATHLEN _POSIX_PATH_MAX
5+
#endif
46

7+
#ifndef NOFILE
58
#define NOFILE NOFILES_MIN
9+
#endif
10+
11+
#define ONLY_REUSE_INET_SOCKETS
612

713
#define DISABLE_COMPLEX_MACRO
14+
15+
#define USE_POSIX_TIME
16+
#define NO_EMPTY_STMTS
17+
#define SYSV_DIRENT
18+
19+
#define HAS_TEST_AND_SET
20+
#define NEED_I386_TAS_ASM
21+
22+
#define USE_UNIVEL_CC
23+
24+
typedef unsigned char slock_t;
25+
26+
#define DISABLE_COMPLEX_MACRO
27+
28+
/***************************************************************
29+
* The following include will get the needed prototype for the
30+
* strcasecmp() function.
31+
***************************************************************/
32+
#include <strings.h>
33+
34+
#ifndef BIG_ENDIAN
35+
#define BIG_ENDIAN 4321
36+
#endif
37+
#ifndef LITTLE_ENDIAN
38+
#define LITTLE_ENDIAN 1234
39+
#endif
40+
#ifndef PDP_ENDIAN
41+
#define PDP_ENDIAN 3412
42+
#endif
43+
#ifndef BYTE_ORDER
44+
#define BYTE_ORDER LITTLE_ENDIAN
45+
#endif

src/interfaces/python/Announce

Lines changed: 0 additions & 66 deletions
This file was deleted.

src/interfaces/python/ChangeLog

Lines changed: 0 additions & 49 deletions
This file was deleted.

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