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
fa2e3cff
Commit
fa2e3cff
authored
Mar 01, 2001
by
Tatsuo Ishii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove HAVE_OPTARG per discussion in hackers list.
parent
7c5b2487
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
141 additions
and
172 deletions
+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
No files found.
configure
View file @
fa2e3cff
This diff is collapsed.
Click to expand it.
configure.in
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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"
);
...
...
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