Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit624789d

Browse files
committed
Cleanup for Win32 compile.
Andreas Pflug
1 parenta11333f commit624789d

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

‎src/bin/psql/win32.mak

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ LINK32_OBJS= $(LINK32_OBJS) "..\..\interfaces\libpq\Release\libpqdll.lib"
9999
!ENDIF
100100

101101
"..\..\port\pg_config_paths.h": win32.mak
102-
echo\#define PGBINDIR"">$@
103-
echo\#define PGSHAREDIR"">>$@
104-
echo\#define SYSCONFDIR"">>$@
105-
echo\#define INCLUDEDIR"">>$@
106-
echo\#define PKGINCLUDEDIR"">>$@
107-
echo\#define INCLUDEDIRSERVER"">>$@
108-
echo\#define LIBDIR"">>$@
109-
echo\#define PKGLIBDIR"">>$@
110-
echo\#define LOCALEDIR"">>$@
102+
echo#define PGBINDIR "" >$@
103+
echo#define PGSHAREDIR "" >>$@
104+
echo#define SYSCONFDIR "" >>$@
105+
echo#define INCLUDEDIR "" >>$@
106+
echo#define PKGINCLUDEDIR "" >>$@
107+
echo#define INCLUDEDIRSERVER "" >>$@
108+
echo#define LIBDIR "" >>$@
109+
echo#define PKGLIBDIR "" >>$@
110+
echo#define LOCALEDIR "" >>$@
111111

112112
"$(OUTDIR)" :
113113
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"

‎src/interfaces/libpq/fe-connect.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.311 2005/06/12 00:07:07 neilc Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.312 2005/06/19 13:10:55 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -3104,6 +3104,8 @@ PasswordFromFile(char *hostname, char *port, char *dbname, char *username)
31043104
if (stat(pgpassfile,&stat_buf)==-1)
31053105
returnNULL;
31063106

3107+
#ifndefWIN32
3108+
31073109
if (!S_ISREG(stat_buf.st_mode))
31083110
{
31093111
fprintf(stderr,
@@ -3113,7 +3115,6 @@ PasswordFromFile(char *hostname, char *port, char *dbname, char *username)
31133115
returnNULL;
31143116
}
31153117

3116-
#ifndefWIN32
31173118
/* If password file is insecure, alert the user and ignore it. */
31183119
if (stat_buf.st_mode& (S_IRWXG |S_IRWXO))
31193120
{

‎src/interfaces/libpq/win32.mak

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pthread.h: pthread.h.win32
115115
copy pthread.h.win32 pthread.h
116116

117117
pg_config_paths.h: win32.mak
118-
echo\#define SYSCONFDIR""> pg_config_paths.h
118+
echo#define SYSCONFDIR "" > pg_config_paths.h
119119

120120
"$(OUTDIR)" :
121121
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
@@ -215,5 +215,8 @@ LINK32_OBJS= \
215215
$(CPP_PROJ) /I"." ..\..\backend\utils\mb\encnames.c
216216
<<
217217

218+
.c{$(CPP_OBJS)}.obj:
219+
$(CPP)$(CPP_PROJ)$<
220+
218221
.c.obj:
219222
$(CPP)$(CPP_PROJ)$<

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp