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

Commitffda674

Browse files
committed
Tweak pgbench.c to remove the hidden assumption that a WIN32 machine
couldn't possibly HAVE_GETOPT. I believe this is the most appropriateform of the patch submitted 2007-08-07 by Hiroshi Saito, though nothaving a Windows build environment I won't know for sure till I seethe buildfarm results.
1 parent314ed5d commitffda674

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

‎contrib/pgbench/pgbench.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.71 2007/08/25 09:21:14 ishii Exp $
2+
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.72 2007/09/27 20:39:43 tgl Exp $
33
*
44
* pgbench: a simple benchmark program for PostgreSQL
55
* written by Tatsuo Ishii
@@ -24,10 +24,11 @@
2424
#include<ctype.h>
2525

2626
#ifdefWIN32
27-
#include"win32.h"
27+
#include<win32.h>
2828
#else
2929
#include<sys/time.h>
3030
#include<unistd.h>
31+
#endif/* ! WIN32 */
3132

3233
#ifdefHAVE_GETOPT_H
3334
#include<getopt.h>
@@ -40,15 +41,10 @@
4041
#ifdefHAVE_SYS_RESOURCE_H
4142
#include<sys/resource.h>/* for getrlimit */
4243
#endif
43-
#endif/* ! WIN32 */
4444

4545
externchar*optarg;
4646
externintoptind;
4747

48-
#ifdefWIN32
49-
#undef select
50-
#endif
51-
5248

5349
/********************************************************************
5450
* some configurable parameters */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp