shithub: sox

Download patch

ref: d8d8acd6a116c1c75e21b065054d84a2e8a3d5e3
parent: 7c3c214956595eb6e42d2b791feb8366835b689c
author: cbagwell <cbagwell>
date: Mon Feb 15 17:08:58 EST 1999

Making getopt() prototype optional to avoid duplicate and different
defines on some platforms (most define argv as a const but earliest
SYSV probably don't.  POSIX wants const though).

--- a/src/sox.c
+++ b/src/sox.c
@@ -43,7 +43,9 @@
 #ifdef HAVE_GETOPT_H
 #include <getopt.h>
 #else
+#ifndef HAVE_GETOPT
 int getopt(P3(int,char **,char *));
+#endif
 #endif
 
 #ifdef VMS