You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
694 B

--- libgetopt/getopt.h.dist 2003-08-18 09:53:19.000000000 +0200
+++ libgetopt/getopt.h 2003-08-18 09:53:46.000000000 +0200
@@ -138,13 +138,11 @@
`getopt'. */
#if (defined __STDC__ && __STDC__) || defined __cplusplus
-# ifdef __GNU_LIBRARY__
+# if defined(__GNU_LIBRARY__) || defined(__FreeBSD__)
/* 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 /* __GNU_LIBRARY__ */
# ifndef __need_getopt