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

Commit600fc1d

Browse files
committed
Get rid of some more stuff that duplicates c.h or port.h.
1 parent14bd1c3 commit600fc1d

File tree

3 files changed

+1
-20
lines changed

3 files changed

+1
-20
lines changed

‎contrib/pg_upgrade/controldata.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include"pg_upgrade.h"
88

99
#include<ctype.h>
10-
#include<stdlib.h>
1110

1211

1312
/*

‎contrib/pg_upgrade/file.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@
66

77
#include"pg_upgrade.h"
88

9-
#include<sys/types.h>
109
#include<fcntl.h>
1110

12-
#ifdefWIN32
13-
#include<windows.h>
14-
#endif
15-
1611

1712
staticintcopy_file(constchar*fromfile,constchar*tofile,boolforce);
1813

‎contrib/pg_upgrade/pg_upgrade.h

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@
55
#include"postgres.h"
66

77
#include<unistd.h>
8-
#include<string.h>
9-
#include<stdio.h>
108
#include<assert.h>
119
#include<dirent.h>
1210
#include<sys/stat.h>
1311
#include<sys/time.h>
14-
#include<sys/types.h>
1512

1613
#include"libpq-fe.h"
1714

@@ -38,26 +35,16 @@
3835
#definepg_copy_filecopy_file
3936
#definepg_mv_filerename
4037
#definepg_link_filelink
41-
#defineDEVNULL"/dev/null"
42-
#defineDEVTTY"/dev/tty"
4338
#defineRMDIR_CMD"rm -rf"
4439
#defineEXEC_EXT"sh"
4540
#else
4641
#definepg_copy_fileCopyFile
4742
#definepg_mv_filepgrename
4843
#definepg_link_filewin32_pghardlink
49-
#defineEXE_EXT".exe"
5044
#definesleep(x)Sleep(x * 1000)
51-
#defineDEVNULL"nul"
52-
/* "con" does not work from the Msys 1.0.10 console (part of MinGW). */
53-
#defineDEVTTY "con"
54-
/* from pgport */
55-
externintpgrename(constchar*from,constchar*to);
56-
externintpgunlink(constchar*path);
57-
#definerename(from,to)pgrename(from, to)
58-
#defineunlink(path)pgunlink(path)
5945
#defineRMDIR_CMD"RMDIR /s/q"
6046
#defineEXEC_EXT"bat"
47+
#defineEXE_EXT".exe"
6148
#endif
6249

6350
#defineCLUSTERNAME(cluster)((cluster) == CLUSTER_OLD ? "old" : "new")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp