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

Commit4ea0275

Browse files
committed
Remove utils/getopt.c file, not needed, it only allowed "--flag"
warnings, and we now look for getopt_long in libgetopt.a.
1 parentcc618f2 commit4ea0275

File tree

3 files changed

+4
-130
lines changed

3 files changed

+4
-130
lines changed

‎src/bin/psql/startup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.60 2002/06/20 20:29:42 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.61 2002/07/15 22:48:54 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99

@@ -548,6 +548,7 @@ parse_psql_options(int argc, char *argv[], struct adhoc_opts * options)
548548
}
549549
break;
550550
#ifndefHAVE_GETOPT_LONG
551+
/* FreeBSD has a broken getopt that causes this test to fail. */
551552
case'-':
552553
fprintf(stderr,
553554
gettext("%s was compiled without support for long options.\n"

‎src/utils/Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Makefile for utils
44
#
5-
# $Header: /cvsroot/pgsql/src/utils/Attic/Makefile,v 1.10 2002/07/1521:34:05 momjian Exp $
5+
# $Header: /cvsroot/pgsql/src/utils/Attic/Makefile,v 1.11 2002/07/1522:48:54 momjian Exp $
66
#
77
# About strdup: Some systems have strdup in their standard library, others
88
# don't. Ones that don't will use this make file to compile the strdup.c
@@ -11,8 +11,6 @@
1111
# because the strdup.c in this directory may conflict with the strdup()
1212
# prototype from the system library and cause a compile error.
1313
#
14-
# getopt.o is likewise built only on request.
15-
#
1614
# dllinit.o is only built on Win32 platform.
1715
#
1816
#-------------------------------------------------------------------------
@@ -26,7 +24,7 @@ all:
2624
# directories as needed.
2725

2826
cleandistcleanmaintainer-clean:
29-
rm -f dllinit.ogetopt.ostrdup.o
27+
rm -f dllinit.o strdup.o
3028

3129
dependdep:
3230
$(CC)$(CFLAGS) -MM*.c>depend

‎src/utils/getopt.c

Lines changed: 0 additions & 125 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp