ref: a4cfbb61e201d0812bca15b87e49101ff2d30224
parent: bfb2951086121fb7f774d8ddc98a0be5ae25f181
author: cbagwell <cbagwell>
date: Fri Nov 7 22:59:51 EST 2008
Work around on MacOS X for our getopt hack.
--- a/src/sox.c
+++ b/src/sox.c
@@ -23,7 +23,6 @@
#include "soxconfig.h"
#include "sox.h"
#include "util.h"
-#include "getopt.h"
#include <errno.h>
#include <math.h>
@@ -70,6 +69,11 @@
#include <unistd.h>
#include <fcntl.h>
#endif
+
+/* We are playing games with getopt aliases so this needs to be included after unistd.h
+ * to prevent aliasing oS's version of getopt.
+ */
+#include "getopt.h"
/* argv[0] options */
--
⑨