Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ce53791b
Commit
ce53791b
authored
Apr 19, 2009
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Assorted portability fixes for Borland C, from Pavel Golub.
parent
85128e5d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
5 deletions
+29
-5
src/include/libpq/libpq-be.h
src/include/libpq/libpq-be.h
+4
-1
src/include/port/win32.h
src/include/port/win32.h
+20
-2
src/interfaces/libpq/bcc32.mak
src/interfaces/libpq/bcc32.mak
+1
-1
src/interfaces/libpq/libpq-int.h
src/interfaces/libpq/libpq-int.h
+4
-1
No files found.
src/include/libpq/libpq-be.h
View file @
ce53791b
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.
69 2009/01/01 17:23:59 momjian
Exp $
* $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.
70 2009/04/19 22:37:13 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -47,6 +47,9 @@
...
@@ -47,6 +47,9 @@
#ifdef ENABLE_SSPI
#ifdef ENABLE_SSPI
#define SECURITY_WIN32
#define SECURITY_WIN32
#if defined(WIN32) && !defined(WIN32_ONLY_COMPILER)
#include <ntsecapi.h>
#endif
#include <security.h>
#include <security.h>
#undef SECURITY_WIN32
#undef SECURITY_WIN32
...
...
src/include/port/win32.h
View file @
ce53791b
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.8
6 2009/01/21 10:30:02 mha
Exp $ */
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.8
7 2009/04/19 22:37:13 tgl
Exp $ */
#if defined(_MSC_VER) || defined(__BORLANDC__)
#if defined(_MSC_VER) || defined(__BORLANDC__)
#define WIN32_ONLY_COMPILER
#define WIN32_ONLY_COMPILER
...
@@ -297,7 +297,7 @@ extern void pgwin32_unsetenv(const char *);
...
@@ -297,7 +297,7 @@ extern void pgwin32_unsetenv(const char *);
#define putenv(x) pgwin32_putenv(x)
#define putenv(x) pgwin32_putenv(x)
#define unsetenv(x) pgwin32_unsetenv(x)
#define unsetenv(x) pgwin32_unsetenv(x)
/* Things that exist in MingW headers, but need to be added to MSVC */
/* Things that exist in MingW headers, but need to be added to MSVC
& BCC
*/
#ifdef WIN32_ONLY_COMPILER
#ifdef WIN32_ONLY_COMPILER
typedef
long
ssize_t
;
typedef
long
ssize_t
;
#ifndef __BORLANDC__
#ifndef __BORLANDC__
...
@@ -335,4 +335,22 @@ typedef unsigned short mode_t;
...
@@ -335,4 +335,22 @@ typedef unsigned short mode_t;
/* Pulled from Makefile.port in mingw */
/* Pulled from Makefile.port in mingw */
#define DLSUFFIX ".dll"
#define DLSUFFIX ".dll"
#ifdef __BORLANDC__
/* for port/dirent.c */
#ifndef INVALID_FILE_ATTRIBUTES
#define INVALID_FILE_ATTRIBUTES ((DWORD) -1)
#endif
/* for port/open.c */
#ifndef O_RANDOM
#define O_RANDOM 0x0010
/* File access is primarily random */
#define O_SEQUENTIAL 0x0020
/* File access is primarily sequential */
#define O_TEMPORARY 0x0040
/* Temporary file bit */
#define O_SHORT_LIVED 0x1000
/* Temporary storage file, try not to flush */
#define _O_SHORT_LIVED O_SHORT_LIVED
#endif
/* ifndef O_RANDOM */
#endif
/* __BORLANDC__ */
#endif
#endif
src/interfaces/libpq/bcc32.mak
View file @
ce53791b
...
@@ -62,7 +62,7 @@ OUTFILENAME=blibpq
...
@@ -62,7 +62,7 @@ OUTFILENAME=blibpq
USERDEFINES
=
FRONTEND
;
NDEBUG
;
WIN32
;
_WINDOWS
USERDEFINES
=
FRONTEND
;
NDEBUG
;
WIN32
;
_WINDOWS
CPP
=
bcc32.exe
CPP
=
bcc32.exe
CPP_PROJ
=
-I
$(BCB)
\i
nclude
;
..
\.
.
\i
nclude
;
..
\.
.
\i
nclude
\p
ort
\w
in32
;
..
\.
.
\i
nclude
\p
ort
\w
in32_msvc
;
..
\.
.
\p
ort
-n
"
$(INTDIR)
"
-WD
-c
-D
$(USERDEFINES)
-tWM
\
CPP_PROJ
=
-I
..
\.
.
\i
nclude
\p
ort
\w
in32_msvc
;
$(BCB)
\i
nclude
;
..
\.
.
\i
nclude
;
..
\.
.
\i
nclude
\p
ort
\w
in32
;
..
\.
.
\p
ort
-n
"
$(INTDIR)
"
-WD
-c
-D
$(USERDEFINES)
-tWM
\
-a8
-X
-w-use
-w-par
-w-pia
-w-csu
-w-aus
-w-ccc
-a8
-X
-w-use
-w-par
-w-pia
-w-csu
-w-aus
-w-ccc
!IFDEF
DEBUG
!IFDEF
DEBUG
...
...
src/interfaces/libpq/libpq-int.h
View file @
ce53791b
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.1
39 2009/01/01 17:24:03 momjian
Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.1
40 2009/04/19 22:37:13 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -55,6 +55,9 @@
...
@@ -55,6 +55,9 @@
#ifdef ENABLE_SSPI
#ifdef ENABLE_SSPI
#define SECURITY_WIN32
#define SECURITY_WIN32
#if defined(WIN32) && !defined(WIN32_ONLY_COMPILER)
#include <ntsecapi.h>
#endif
#include <security.h>
#include <security.h>
#undef SECURITY_WIN32
#undef SECURITY_WIN32
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment