From a37aaf88a824d606550737bea761d7e3d4011942 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 6 Jan 2006 20:59:13 +0000 Subject: [PATCH] 2006-01-06 Jeff Johnston * libc/sys/linux/include/getopt.h: Add macros needed by new version of getopt.c in libc/stdlib. --- newlib/ChangeLog | 5 +++++ newlib/libc/sys/linux/include/getopt.h | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index c714a1631..29a8dc09e 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2006-01-06 Jeff Johnston + + * libc/sys/linux/include/getopt.h: Add macros needed by + new version of getopt.c in libc/stdlib. + 2006-01-04 Gregory Pietsch * 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 994f86001..3fdf4645c 100644 --- a/newlib/libc/sys/linux/include/getopt.h +++ b/newlib/libc/sys/linux/include/getopt.h @@ -8,8 +8,11 @@ #include - -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;