aboutsummaryrefslogtreecommitdiff
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
parent1b0000274430d098bfd3f3583b2b3d379788a053 (diff)
downloadnewlib-a37aaf88a824d606550737bea761d7e3d4011942.zip
newlib-a37aaf88a824d606550737bea761d7e3d4011942.tar.gz
newlib-a37aaf88a824d606550737bea761d7e3d4011942.tar.bz2
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.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/sys/linux/include/getopt.h7
2 files changed, 10 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index c714a16..29a8dc0 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2006-01-04 Gregory Pietsch <gpietsch@comcast.net>
* libc/stdlib/getopt.c: Replaced with version
diff --git a/newlib/libc/sys/linux/include/getopt.h b/newlib/libc/sys/linux/include/getopt.h
index 994f860..3fdf464 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;