Skip to content

Commit dc4ee8a

Browse files
committed
Back out patch that got bundled into another patch.
1 parent a647e30 commit dc4ee8a

File tree

15 files changed

+18
-90
lines changed

15 files changed

+18
-90
lines changed

src/backend/libpq/ip.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.13 2003/06/12 08:02:53 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.14 2003/06/12 08:11:07 momjian Exp $
1212
*
1313
* This file and the IPV6 implementation were initially provided by
1414
* Nigel Kukard <nkukard@lbsd.net>, Linux Based Systems Design
@@ -20,8 +20,6 @@
2020
/* This is intended to be used in both frontend and backend, so use c.h */
2121
#include "c.h"
2222

23-
#if !defined(_MSC_VER) && !defined(__BORLANDC__)
24-
2523
#include <errno.h>
2624
#include <unistd.h>
2725
#include <sys/types.h>
@@ -35,8 +33,6 @@
3533
#include <arpa/inet.h>
3634
#include <sys/file.h>
3735

38-
#endif
39-
4036
#include "libpq/ip.h"
4137

4238

src/backend/utils/mb/encnames.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Encoding names and routines for work with it. All
33
* in this file is shared bedween FE and BE.
44
*
5-
* $Id: encnames.c,v 1.14 2003/06/12 08:02:53 momjian Exp $
5+
* $Id: encnames.c,v 1.15 2003/06/12 08:11:07 momjian Exp $
66
*/
77
#ifdef FRONTEND
88
#include "postgres_fe.h"
@@ -13,9 +13,7 @@
1313
#include "utils/builtins.h"
1414
#endif
1515

16-
#if !defined(_MSC_VER) && !defined(__BORLANDC__)
1716
#include <unistd.h>
18-
#endif
1917

2018
#include "mb/pg_wchar.h"
2119
#include <ctype.h>

src/include/c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
15-
* $Id: c.h,v 1.148 2003/06/12 08:02:56 momjian Exp $
15+
* $Id: c.h,v 1.149 2003/06/12 08:11:07 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -73,7 +73,7 @@
7373
#include <SupportDefs.h>
7474
#endif
7575

76-
#if defined(WIN32) && !defined(_MSC_VER) && !defined(__BORLANDC__)
76+
#ifdef WIN32
7777
/* We have to redefine some system functions after they are included above */
7878
#include "pg_config_os.h"
7979
#endif

src/include/getaddrinfo.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,15 @@
1616
*
1717
* Copyright (c) 2003, PostgreSQL Global Development Group
1818
*
19-
* $Id: getaddrinfo.h,v 1.4 2003/06/12 08:02:56 momjian Exp $
19+
* $Id: getaddrinfo.h,v 1.5 2003/06/12 08:11:07 momjian Exp $
2020
*
2121
*-------------------------------------------------------------------------
2222
*/
2323
#ifndef GETADDRINFO_H
2424
#define GETADDRINFO_H
2525

26-
#if !defined(WIN32) || (!defined(_MSC_VER) && !defined(__BORLANDC__))
2726
#include <sys/socket.h>
2827
#include <netdb.h>
29-
#endif
3028

3129

3230
#ifndef HAVE_STRUCT_ADDRINFO

src/include/pg_config.h.win32

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
#define HAVE_ATEXIT
2222
#define HAVE_MEMMOVE
2323

24-
#ifdef __BORLANDC__
25-
#define HAVE_RANDOM
26-
#endif
27-
2824
/* use _snprintf instead of snprintf */
2925
#define HAVE_DECL_SNPRINTF 1
3026
#define snprintf _snprintf

src/include/port.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: port.h,v 1.4 2003/06/12 08:02:56 momjian Exp $
9+
* $Id: port.h,v 1.5 2003/06/12 08:11:07 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -76,10 +76,8 @@ extern double rint(double x);
7676
#endif
7777

7878
#ifndef HAVE_INET_ATON
79-
#if !defined(WIN32) || (!defined(_MSC_VER) && !defined(__BORLANDC__))
8079
# include <netinet/in.h>
8180
# include <arpa/inet.h>
82-
#endif
8381
extern int inet_aton(const char *cp, struct in_addr * addr);
8482
#endif
8583

src/interfaces/libpq/bcc32.mak

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and a Win32 dynamic library libpq.dll with import library libpqdll.lib
55

66
# Borland C++ base install directory goes here
7-
# BCB=d:\Borland\Bcc55
7+
BCB=d:\Borland\Bcc55
88

99
!MESSAGE Building the Win32 DLL and Static Library...
1010
!MESSAGE
@@ -63,13 +63,8 @@ LIB32=tlib.exe
6363
LIB32_FLAGS=
6464
LIB32_OBJS= \
6565
"$(OUTDIR)\win32.obj" \
66-
"$(INTDIR)\getaddrinfo.obj" \
67-
"$(INTDIR)\inet_aton.obj" \
68-
"$(INTDIR)\crypt.obj" \
69-
"$(INTDIR)\path.obj" \
7066
"$(INTDIR)\dllist.obj" \
7167
"$(INTDIR)\md5.obj" \
72-
"$(INTDIR)\ip.obj" \
7368
"$(INTDIR)\fe-auth.obj" \
7469
"$(INTDIR)\fe-connect.obj" \
7570
"$(INTDIR)\fe-exec.obj" \
@@ -82,7 +77,7 @@ LIB32_OBJS= \
8277
"$(INTDIR)\encnames.obj"
8378

8479
RSC=brcc32.exe
85-
RSC_PROJ=-l 0x409 -i$(BCB)\include -fo"$(INTDIR)\libpq.res"
80+
RSC_PROJ=/l 0x409 /fo"$(INTDIR)\libpq.res"
8681

8782
LINK32=ilink32.exe
8883
LINK32_FLAGS = -Gn -L$(BCB)\lib;$(INTDIR); -x -Tpd -v
@@ -91,20 +86,15 @@ LINK32_OBJS= "$(INTDIR)\libpqdll.obj"
9186
# ---------------------------------------------------------------------------
9287

9388
.path.obj = $(INTDIR)
94-
.path.c = .;..\..\port;..\..\backend\libpq;..\..\backend\lib;..\..\backend\utils\mb
89+
.path.c = .;..\..\backend\libpq;..\..\backend\lib;..\..\backend\utils\mb
9590

9691
# ---------------------------------------------------------------------------
9792

9893
ALL: "$(OUTDIR)" "$(OUTDIR)\blibpq.dll" "$(OUTDIR)\blibpq.lib"
9994

10095
CLEAN :
101-
-@erase "$(INTDIR)\getaddrinfo.obj"
102-
-@erase "$(INTDIR)\inet_aton.obj"
103-
-@erase "$(INTDIR)\crypt.obj"
104-
-@erase "$(INTDIR)\path.obj"
10596
-@erase "$(INTDIR)\dllist.obj"
10697
-@erase "$(INTDIR)\md5.obj"
107-
-@erase "$(INTDIR)\ip.obj"
10898
-@erase "$(INTDIR)\fe-auth.obj"
10999
-@erase "$(INTDIR)\fe-connect.obj"
110100
-@erase "$(INTDIR)\fe-exec.obj"
@@ -135,7 +125,7 @@ CLEAN :
135125
"$(OUTDIR)\blibpq.lib" import32.lib cw32mti.lib, +
136126
blibpqdll.def,"$(INTDIR)\libpq.res"
137127
!
138-
implib -w "$(OUTDIR)\blibpqdll.lib" blibpqdll.def $@
128+
implib -a "$(OUTDIR)\blibpqdll.lib" blibpqdll.def $@
139129

140130
"$(INTDIR)\libpq.res" : "$(INTDIR)" libpq.rc
141131
$(RSC) $(RSC_PROJ) libpq.rc

src/interfaces/libpq/blibpqdll.def

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ EXPORTS
9696
_pg_encoding_to_char @ 92
9797
_pg_utf_mblen @ 93
9898
_PQunescapeBytea @ 94
99-
_PQfreemem @ 95
99+
_PQfreeMem @ 95
100100

101101
; Aliases for MS compatible names
102102
PQconnectdb = _PQconnectdb
@@ -193,5 +193,5 @@ EXPORTS
193193
pg_encoding_to_char = _pg_encoding_to_char
194194
pg_utf_mblen = _pg_utf_mblen
195195
PQunescapeBytea = _PQunescapeBytea
196-
PQfreemem = _PQfreemem
196+
PQfreeMem = _PQfreeMem
197197

src/interfaces/libpq/fe-connect.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.245 2003/06/12 08:02:57 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.246 2003/06/12 08:11:07 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -49,10 +49,6 @@
4949
#include "libpq/ip.h"
5050
#include "mb/pg_wchar.h"
5151

52-
/* For FNCTL_NONBLOCK */
53-
#if defined(WIN32) || defined(__BEOS__)
54-
long ioctlsocket_ret;
55-
#endif
5652

5753
#define PGPASSFILE ".pgpass"
5854

src/interfaces/libpq/fe-misc.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Portions Copyright (c) 1994, Regents of the University of California
2424
*
2525
* IDENTIFICATION
26-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.93 2003/06/12 08:02:57 momjian Exp $
26+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.94 2003/06/12 08:11:07 momjian Exp $
2727
*
2828
*-------------------------------------------------------------------------
2929
*/
@@ -33,11 +33,8 @@
3333
#include <errno.h>
3434
#include <signal.h>
3535
#include <time.h>
36-
37-
#if !defined(_MSC_VER) && !defined(__BORLANDC__)
3836
#include <netinet/in.h>
3937
#include <arpa/inet.h>
40-
#endif
4138

4239
#ifdef WIN32
4340
#include "win32.h"

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