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
5d72ef83
Commit
5d72ef83
authored
Nov 17, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Miscellaneous Cygwin build fixes from Reini Urban.
parent
ede8f4e3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
12 deletions
+34
-12
contrib/spi/Makefile
contrib/spi/Makefile
+3
-1
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_ctl/pg_ctl.c
+11
-1
src/include/port.h
src/include/port.h
+12
-7
src/interfaces/libpq/Makefile
src/interfaces/libpq/Makefile
+5
-1
src/template/cygwin
src/template/cygwin
+3
-2
No files found.
contrib/spi/Makefile
View file @
5d72ef83
# $PostgreSQL: pgsql/contrib/spi/Makefile,v 1.2
4 2004/08/20 20:13:08 momjian
Exp $
# $PostgreSQL: pgsql/contrib/spi/Makefile,v 1.2
5 2004/11/17 17:45:59 tgl
Exp $
MODULES
=
autoinc insert_username moddatetime refint timetravel
DATA_built
=
$(
addsuffix
.sql,
$(MODULES)
)
...
...
@@ -17,3 +17,5 @@ top_builddir = ../..
include
$(top_builddir)/src/Makefile.global
include
$(top_srcdir)/contrib/contrib-global.mk
endif
SHLIB_LINK
+=
-L
$(top_builddir)
/src/port
-lpgport
src/bin/pg_ctl/pg_ctl.c
View file @
5d72ef83
...
...
@@ -4,7 +4,7 @@
*
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.4
6 2004/11/17 16:34:4
2 tgl Exp $
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.4
7 2004/11/17 17:46:1
2 tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -22,6 +22,7 @@
#include "getopt_long.h"
#if defined(__CYGWIN__)
#include <sys/cygwin.h>
#include <windows.h>
/* Cygwin defines WIN32 in windows.h, but we don't want it. */
#undef WIN32
...
...
@@ -820,6 +821,9 @@ pgwin32_CommandLine(bool registration)
{
static
char
cmdLine
[
MAXPGPATH
];
int
ret
;
#ifdef __CYGWIN__
char
buf
[
MAXPGPATH
];
#endif
if
(
registration
)
{
...
...
@@ -840,6 +844,12 @@ pgwin32_CommandLine(bool registration)
}
}
#ifdef __CYGWIN__
/* need to convert to windows path */
cygwin_conv_to_full_win32_path
(
cmdLine
,
buf
);
strcpy
(
cmdLine
,
buf
);
#endif
if
(
registration
)
{
if
(
strcasecmp
(
cmdLine
+
strlen
(
cmdLine
)
-
4
,
".exe"
))
...
...
src/include/port.h
View file @
5d72ef83
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/port.h,v 1.6
6 2004/11/08 16:34:23 momjian
Exp $
* $PostgreSQL: pgsql/src/include/port.h,v 1.6
7 2004/11/17 17:46:15 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -73,9 +73,13 @@ extern int find_other_exec(const char *argv0, const char *target,
#if defined(WIN32) || defined(__CYGWIN__)
#define EXE ".exe"
#define DEVNULL "nul"
#else
#define EXE ""
#endif
#if defined(WIN32) && !defined(__CYGWIN__)
#define DEVNULL "nul"
#else
#define DEVNULL "/dev/null"
#endif
...
...
@@ -88,13 +92,13 @@ extern int find_other_exec(const char *argv0, const char *target,
* See the "Notes" section about quotes at:
* http://home.earthlink.net/~rlively/MANUALS/COMMANDS/C/CMD.HTM
*/
#if
def WIN32
#if
defined(WIN32) && !defined(__CYGWIN__)
#define SYSTEMQUOTE "\""
#else
#define SYSTEMQUOTE ""
#endif
#if
def WIN32
#if
defined(WIN32) && !defined(__CYGWIN__)
#define HOMEDIR "USERPROFILE"
#else
#define HOMEDIR "HOME"
...
...
@@ -163,8 +167,9 @@ extern int pgunlink(const char *path);
* Cygwin has its own symlinks which work on Win95/98/ME where
* junction points don't, so use it instead. We have no way of
* knowing what type of system Cygwin binaries will be run on.
* Note: Some CYGWIN includes might #define WIN32.
*/
#if
def WIN32
#if
defined(WIN32) && !defined(__CYGWIN__)
extern
int
pgsymlink
(
const
char
*
oldpath
,
const
char
*
newpath
);
#define symlink(oldpath, newpath) pgsymlink(oldpath, newpath)
#endif
...
...
@@ -173,7 +178,7 @@ extern int pgsymlink(const char *oldpath, const char *newpath);
extern
bool
rmtree
(
char
*
path
,
bool
rmtopdir
);
#if
def WIN32
#if
defined(WIN32) && !defined(__CYGWIN__)
/* open() replacement to allow delete of held files */
#ifndef WIN32_CLIENT_ONLY
...
...
@@ -266,7 +271,7 @@ extern void srandom(unsigned int seed);
/* thread.h */
extern
char
*
pqStrerror
(
int
errnum
,
char
*
strerrbuf
,
size_t
buflen
);
#if
ndef WIN32
#if
!defined(WIN32) || defined(__CYGWIN__)
extern
int
pqGetpwuid
(
uid_t
uid
,
struct
passwd
*
resultbuf
,
char
*
buffer
,
size_t
buflen
,
struct
passwd
**
result
);
#endif
...
...
src/interfaces/libpq/Makefile
View file @
5d72ef83
...
...
@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.12
0 2004/10/16 22:52:4
9 tgl Exp $
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.12
1 2004/11/17 17:46:1
9 tgl Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -31,6 +31,10 @@ OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
md5.o ip.o wchar.o encnames.o noblock.o pgstrcasecmp.o thread.o
\
$(
filter
crypt.o getaddrinfo.o inet_aton.o open.o snprintf.o strerror.o,
$(LIBOBJS)
)
ifeq
($(PORTNAME), cygwin)
override
shlib
=
cyg
$(NAME)$(DLSUFFIX)
endif
ifeq
($(PORTNAME), win32)
OBJS
+=
win32.o libpqrc.o
libpqrc.o
:
libpq.rc
...
...
src/template/cygwin
View file @
5d72ef83
...
...
@@ -2,5 +2,6 @@ SRCH_LIB="/usr/local/lib"
# This is required to link pg_dump because it finds pg_toupper() in
# libpq and pgport
LDFLAGS="-Wl,--allow-multiple-definition"
LDFLAGS="-Wl,--allow-multiple-definition -Wl,--enable-auto-import"
# --enable-auto-import gets rid of a diagnostics linker message
LDFLAGS_SL="-Wl,--enable-auto-import"
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