projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5788d97
)
getopt.h is a GNU-getopt-specific header. always expose GNU functions.
author
Rich Felker
<dalias@aerifal.cx>
Tue, 5 Apr 2011 19:45:24 +0000
(15:45 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 5 Apr 2011 19:45:24 +0000
(15:45 -0400)
include/getopt.h
patch
|
blob
|
history
diff --git
a/include/getopt.h
b/include/getopt.h
index 0de05aefbd0b92668e82a8605426f7918b574135..6d85c0b6ba68313a5ab0760e069e56fc845253fa 100644
(file)
--- a/
include/getopt.h
+++ b/
include/getopt.h
@@
-9,7
+9,6
@@
int getopt(int, char * const [], const char *);
extern char *optarg;
extern int optind, opterr, optopt;
-#ifdef _GNU_SOURCE
struct option
{
const char *name;
@@
-24,7
+23,6
@@
int getopt_long_only(int, char *const *, const char *, const struct option *, in
#define no_argument 0
#define required_argument 1
#define optional_argument 2
-#endif
#ifdef __cplusplus
}