shithub: sox

Download patch

ref: 46f7237a7bb8123b869fade910ca2c3627052ca8
parent: 2d5b2941c9b541683937a66e92632461b7edd7fe
author: Doug Cook <idigdoug@users.sourceforge.net>
date: Sat Mar 19 22:31:38 EDT 2011

Fix warning regarding prototype of lsx_getopt

The ifdefs appear to be guarding against redefinition of getopt(), but that
shouldn't be a problem since we've renamed it to lsx_getopt.

--- a/src/sgetopt.h
+++ b/src/sgetopt.h
@@ -145,14 +145,7 @@
    `getopt'.  */
 
 #if (defined __STDC__ && __STDC__) || defined __cplusplus
-# 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 lsx_getopt (int ___argc, char *const *___argv, const char *__shortopts);
-# else /* not __GNU_LIBRARY__ */
-extern int lsx_getopt ();
-# endif /* __GNU_LIBRARY__ */
 
 # ifndef __need_getopt
 extern int lsx_getopt_long (int ___argc, char *const *___argv,