Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
fa2e3cff
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fa2e3cff
编写于
3月 01, 2001
作者:
T
Tatsuo Ishii
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove HAVE_OPTARG per discussion in hackers list.
上级
7c5b2487
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
141 addition
and
172 deletion
+141
-172
configure
configure
+129
-145
configure.in
configure.in
+0
-3
src/bin/pg_dump/pg_restore.c
src/bin/pg_dump/pg_restore.c
+3
-8
src/bin/pg_id/pg_id.c
src/bin/pg_id/pg_id.c
+5
-9
src/include/config.h.in
src/include/config.h.in
+1
-4
src/interfaces/ecpg/preproc/ecpg.c
src/interfaces/ecpg/preproc/ecpg.c
+3
-3
未找到文件。
configure
浏览文件 @
fa2e3cff
此差异已折叠。
点击以展开。
configure.in
浏览文件 @
fa2e3cff
...
...
@@ -777,9 +777,6 @@ AC_CHECK_FUNCS([fcvt getopt_long memmove pstat setproctitle setsid sigprocmask s
dnl Check whether <unistd.h> declares fdatasync().
AC_EGREP_HEADER(fdatasync, unistd.h, AC_DEFINE(HAVE_FDATASYNC_DECL))
dnl Check whether <unistd.h> declares optarg
AC_EGREP_HEADER(optarg, unistd.h, AC_DEFINE(HAVE_OPTARG_DECL))
AC_CACHE_CHECK([for PS_STRINGS], [pgac_cv_var_PS_STRINGS],
[AC_TRY_LINK(
[#include <machine/vmparam.h>
...
...
src/bin/pg_dump/pg_restore.c
浏览文件 @
fa2e3cff
...
...
@@ -67,14 +67,7 @@
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#else
#ifdef HAVE_OPTARG_DECL
#include <unistd.h>
#else
extern
char
*
optarg
;
extern
int
optind
,
opterr
,
optopt
;
#endif
/* HAVE_OPTARG_DECL */
#endif
/* HAVE_GETOPT_H */
#endif
/* Forward decls */
static
void
usage
(
const
char
*
progname
);
...
...
@@ -120,6 +113,8 @@ int main(int argc, char **argv)
int
c
;
Archive
*
AH
;
char
*
fileSpec
=
NULL
;
extern
int
optind
;
extern
char
*
optarg
;
opts
=
NewRestoreOptions
();
...
...
src/bin/pg_id/pg_id.c
浏览文件 @
fa2e3cff
...
...
@@ -6,20 +6,13 @@
*
* Copyright (C) 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.1
8 2001/02/27 08:13:28
ishii Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.1
9 2001/03/01 05:05:29
ishii Exp $
*/
#include "postgres_fe.h"
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#else
#ifdef HAVE_OPTARG_DECL
#include <unistd.h>
#else
extern
char
*
optarg
;
extern
int
optind
,
opterr
,
optopt
;
#endif
/* HAVE_OPTARG_DECL */
#endif
/* HAVE_GETOPT_H */
#endif
#include <pwd.h>
#include <stdio.h>
...
...
@@ -38,6 +31,9 @@ main(int argc, char *argv[])
struct
passwd
*
pw
;
extern
int
optind
;
extern
char
*
optarg
;
while
((
c
=
getopt
(
argc
,
argv
,
"nru"
))
!=
-
1
)
{
switch
(
c
)
...
...
src/include/config.h.in
浏览文件 @
fa2e3cff
...
...
@@ -8,7 +8,7 @@
* or in config.h afterwards. Of course, if you edit config.h, then your
* changes will be overwritten the next time you run configure.
*
* $Id: config.h.in,v 1.1
59 2001/02/27 08:13:27
ishii Exp $
* $Id: config.h.in,v 1.1
60 2001/03/01 05:05:29
ishii Exp $
*/
#ifndef CONFIG_H
...
...
@@ -579,9 +579,6 @@ extern int fdatasync(int fildes);
/* Set to 1 if you have getopt_long() (GNU long options) */
#undef HAVE_GETOPT_LONG
/* Set to 1 if optarg is declared in unistd.h */
#undef HAVE_OPTARG_DECL
/* Set to 1 if you have union semun */
#undef HAVE_UNION_SEMUN
...
...
src/interfaces/ecpg/preproc/ecpg.c
浏览文件 @
fa2e3cff
...
...
@@ -8,9 +8,6 @@
#ifdef HAVE_GETOPT_H
#include "getopt.h"
#else
extern
char
*
optarg
;
extern
int
optind
,
opterr
,
optopt
;
#endif
#include "extern.h"
...
...
@@ -64,6 +61,9 @@ main(int argc, char *const argv[])
out_option
=
0
;
struct
_include_path
*
ip
;
extern
int
optind
;
extern
char
*
optarg
;
add_include_path
(
"/usr/include"
);
add_include_path
(
INCLUDE_PATH
);
add_include_path
(
"/usr/local/include"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录