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:
authorJeff Johnston <jjohnstn@redhat.com>2006-01-06 23:59:13 +0300
committerJeff Johnston <jjohnstn@redhat.com>2006-01-06 23:59:13 +0300
commita37aaf88a824d606550737bea761d7e3d4011942 (patch)
treeff2a60b4738884c010e324b76b066a53417d459d /newlib/libc/sys
parent1b0000274430d098bfd3f3583b2b3d379788a053 (diff)
2006-01-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/include/getopt.h: Add macros needed by new version of getopt.c in libc/stdlib.
Diffstat (limited to 'newlib/libc/sys')
-rw-r--r--newlib/libc/sys/linux/include/getopt.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/newlib/libc/sys/linux/include/getopt.h b/newlib/libc/sys/linux/include/getopt.h
index 994f86001..3fdf4645c 100644
--- a/newlib/libc/sys/linux/include/getopt.h
+++ b/newlib/libc/sys/linux/include/getopt.h
@@ -8,8 +8,11 @@
#include <unistd.h>
-
-enum { no_argument, required_argument, optional_argument };
+enum { NO_ARG, REQUIRED_ARG, OPTIONAL_ARG };
+/* Define glibc names as well for compatibility. */
+#define no_argument NO_ARG
+#define required_argument REQUIRED_ARG
+#define optional_argument OPTIONAL_ARG
struct option {
const char *name;