8dd0cfbe7b
up getop_long_only implementation. Patch sent to the author. Ok'd by seb@.
27 lines
729 B
Text
27 lines
729 B
Text
$NetBSD: patch-ao,v 1.1 2003/09/30 09:44:00 cube Exp $
|
||
|
||
--- getopt/getopt.c.orig 2003-09-29 23:27:50.000000000 +0200
|
||
+++ getopt/getopt.c
|
||
@@ -21,17 +21,17 @@
|
||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||
Boston, MA 02111-1307, USA. */
|
||
|
||
-#ifndef HAVE_GETOPT_H
|
||
+#ifdef HAVE_CONFIG_H
|
||
+#include <config.h>
|
||
+#endif
|
||
+
|
||
+#ifndef HAVE_GETOPT_LONG_ONLY
|
||
/* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>.
|
||
Ditto for AIX 3.2 and <stdlib.h>. */
|
||
#ifndef _NO_PROTO
|
||
#define _NO_PROTO
|
||
#endif
|
||
|
||
-#ifdef HAVE_CONFIG_H
|
||
-#include <config.h>
|
||
-#endif
|
||
-
|
||
#if !defined (__STDC__) || !__STDC__
|
||
/* This is a separate conditional since some stdc systems
|
||
reject `defined (const)'. */
|