mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
34 lines
1.4 KiB
Diff
34 lines
1.4 KiB
Diff
--- a/finch/getopt.h
|
|
+++ b/finch/getopt.h
|
|
@@ -102,14 +102,10 @@
|
|
#define optional_argument 2
|
|
|
|
#if __STDC__
|
|
-#if defined(__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__ */
|
|
-extern int getopt ();
|
|
-#endif /* not __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,
|
|
--- a/pidgin/getopt.h
|
|
+++ b/pidgin/getopt.h
|
|
@@ -102,14 +102,10 @@
|
|
#define optional_argument 2
|
|
|
|
#if __STDC__
|
|
-#if defined(__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__ */
|
|
-extern int getopt ();
|
|
-#endif /* not __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,
|