Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tracking issue: #31696
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/lib/getopt.h b/lib/getopt.h | ||
index 2d02142..5e7d8d4 100644 | ||
--- a/lib/getopt.h | ||
+++ b/lib/getopt.h | ||
@@ -101,13 +101,6 @@ struct option | ||
#define optional_argument 2 | ||
|
||
#if defined (__STDC__) && __STDC__ | ||
-#ifdef __GNU_LIBRARY__ | ||
-/* Many other libraries have conflicting prototypes for getopt, with | ||
- differences in the consts, in stdlib.h. To avoid compilation | ||
- errors, only prototype getopt for the GNU C library. */ | ||
-extern int getopt (int argc, char *const *argv, const char *shortopts); | ||
-#else /* not __GNU_LIBRARY__ */ | ||
-#endif /* __GNU_LIBRARY__ */ | ||
extern int getopt_long (int argc, char *const *argv, const char *shortopts, | ||
const struct option *longopts, int *longind); | ||
extern int getopt_long_only (int argc, char *const *argv, |