Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
e8d11ade
Commit
e8d11ade
authored
17 years ago
by
Andrew Dunstan
Browse files
Options
Downloads
Patches
Plain Diff
Avoid using unnecessary pgwin32_safestat in libpq.
parent
17cdf848
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/include/port.h
+5
-2
5 additions, 2 deletions
src/include/port.h
src/interfaces/libpq/Makefile
+2
-2
2 additions, 2 deletions
src/interfaces/libpq/Makefile
src/tools/msvc/Mkvcbuild.pm
+2
-1
2 additions, 1 deletion
src/tools/msvc/Mkvcbuild.pm
with
9 additions
and
5 deletions
src/include/port.h
+
5
−
2
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/1
1 23:53:00 tgl
Exp $
* $PostgreSQL: pgsql/src/include/port.h,v 1.12
1
2008/04/1
6 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)
...
...
This diff is collapsed.
Click to expand it.
src/interfaces/libpq/Makefile
+
2
−
2
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:1
5
:5
8 petere
Exp $
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.16
6
2008/04/
16
14:1
9
:5
6 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
...
...
This diff is collapsed.
Click to expand it.
src/tools/msvc/Mkvcbuild.pm
+
2
−
1
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/0
2/28
1
2
:1
7
:5
9 mha
Exp $
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.2
7
2008/0
4/16
1
4
:1
9
:5
6 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
');
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment