summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/linux/include
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2006-01-06 20:59:13 +0000
committerJeff Johnston <jjohnstn@redhat.com>2006-01-06 20:59:13 +0000
commita37aaf88a824d606550737bea761d7e3d4011942 (patch)
treeff2a60b4738884c010e324b76b066a53417d459d /newlib/libc/sys/linux/include
parent1b0000274430d098bfd3f3583b2b3d379788a053 (diff)
downloadcygnal-a37aaf88a824d606550737bea761d7e3d4011942.tar.gz
cygnal-a37aaf88a824d606550737bea761d7e3d4011942.tar.bz2
cygnal-a37aaf88a824d606550737bea761d7e3d4011942.zip
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/linux/include')
-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;