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
e8d11ade
Commit
e8d11ade
authored
Apr 16, 2008
by
Andrew Dunstan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid using unnecessary pgwin32_safestat in libpq.
parent
17cdf848
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
src/include/port.h
src/include/port.h
+5
-2
src/interfaces/libpq/Makefile
src/interfaces/libpq/Makefile
+2
-2
src/tools/msvc/Mkvcbuild.pm
src/tools/msvc/Mkvcbuild.pm
+2
-1
No files found.
src/include/port.h
View file @
e8d11ade
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/port.h,v 1.12
0 2008/04/11 23:53:00 tgl
Exp $
* $PostgreSQL: pgsql/src/include/port.h,v 1.12
1 2008/04/16 14:19:56 adunstan
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -287,8 +287,11 @@ extern bool rmtree(char *path, bool rmtopdir);
*
* We must pull in sys/stat.h here so the system header definition
* goes in first, and we redefine that, and not the other way around.
*
* Some frontends don't need the size from stat, so if UNSAFE_STAT_OK
* is defined we don't bother with this.
*/
#if defined(WIN32) && !defined(__CYGWIN__)
#if defined(WIN32) && !defined(__CYGWIN__)
&& !defined(UNSAFE_STAT_OK)
#include <sys/stat.h>
extern
int
pgwin32_safestat
(
const
char
*
path
,
struct
stat
*
buf
);
#define stat(a,b) pgwin32_safestat(a,b)
...
...
src/interfaces/libpq/Makefile
View file @
e8d11ade
...
...
@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.16
5 2008/04/07 14:15:58 petere
Exp $
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.16
6 2008/04/16 14:19:56 adunstan
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -19,7 +19,7 @@ NAME= pq
SO_MAJOR_VERSION
=
5
SO_MINOR_VERSION
=
2
override CPPFLAGS
:
= -DFRONTEND -I$(srcdir) $(CPPFLAGS) -I$(top_builddir)/src/port
override CPPFLAGS
:
= -DFRONTEND -
DUNSAFE_STAT_OK -
I$(srcdir) $(CPPFLAGS) -I$(top_builddir)/src/port
ifneq
($(PORTNAME), win32)
override
CFLAGS
+=
$(PTHREAD_CFLAGS)
endif
...
...
src/tools/msvc/Mkvcbuild.pm
View file @
e8d11ade
...
...
@@ -3,7 +3,7 @@ package Mkvcbuild;
#
# Package that generates build files for msvc build
#
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.2
6 2008/02/28 12:17:59 mha
Exp $
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.2
7 2008/04/16 14:19:56 adunstan
Exp $
#
use
Carp
;
use
Win32
;
...
...
@@ -127,6 +127,7 @@ sub mkvcbuild
$libpq
=
$solution
->
AddProject
('
libpq
','
dll
','
interfaces
','
src
\
interfaces
\
libpq
');
$libpq
->
AddDefine
('
FRONTEND
');
$libpq
->
AddDefine
('
UNSAFE_STAT_OK
');
$libpq
->
AddIncludeDir
('
src
\
port
');
$libpq
->
AddLibrary
('
wsock32.lib
');
$libpq
->
AddLibrary
('
secur32.lib
');
...
...
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