Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/getopt.c')
-rw-r--r--newlib/libc/stdlib/getopt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/getopt.c b/newlib/libc/stdlib/getopt.c
index eb0a08284..944214d5f 100644
--- a/newlib/libc/stdlib/getopt.c
+++ b/newlib/libc/stdlib/getopt.c
@@ -83,11 +83,13 @@ Gregory Pietsch's current e-mail address:
gpietsch@comcast.net
****************************************************************************/
+#ifndef HAVE_GETOPT
/* include files */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#define __need_getopt_newlib
#include <getopt.h>
/* macros */
@@ -472,4 +474,6 @@ __getopt_long_only_r (int argc, char *const argv[], const char *shortopts,
return getopt_internal (argc, argv, shortopts, longopts, longind, 1, data);
}
+#endif /* !HAVE_GETOPT */
+
/* end of file GETOPT.C */