diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-12 20:55:47 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:21 +0200 |
commit | caa86c6d8d7030e504add365a3a46fbc34b911df (patch) | |
tree | 134ee499760b39c751062fe405480940ab675b97 /libc/unistd/getopt.c | |
parent | 5d39c1ed76f87fd2f52d30e663989d2ced76f253 (diff) |
getopt.c, getopt.h: avoid the need for __FORCE_GLIBC
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/unistd/getopt.c')
-rw-r--r-- | libc/unistd/getopt.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libc/unistd/getopt.c b/libc/unistd/getopt.c index f4c113092..f1ee0f462 100644 --- a/libc/unistd/getopt.c +++ b/libc/unistd/getopt.c @@ -36,9 +36,6 @@ # include <config.h> #endif -#define __FORCE_GLIBC -#include <features.h> - #include <stdio.h> /* Comment out all this code if we are using the GNU C Library, and are not @@ -62,7 +59,7 @@ /* This needs to come after some library #include to get __GNU_LIBRARY__ defined. */ -#ifdef __GNU_LIBRARY__ +#if defined __GNU_LIBRARY__ || defined __UCLIBC__ /* Don't include stdlib.h for non-GNU C libraries because some of them contain conflicting prototypes for getopt. */ # include <stdlib.h> @@ -161,7 +158,7 @@ int optopt = '?'; static struct _getopt_data getopt_data; -#ifndef __GNU_LIBRARY__ +#if !defined __GNU_LIBRARY__ && !defined __UCLIBC__ /* Avoid depending on library functions or files whose names are inconsistent. */ |