shithub: aubio

Download patch

ref: cb796a356316cd19a838bcdd63b802c43434e582
parent: 6144cef6cc2768277af463063bbc6e1ca5c161cd
author: Paul Brossier <piem@piem.org>
date: Sat Apr 23 17:16:00 EDT 2016

examples/parse_args.h: set optind = 1 if no getopt.h

--- a/examples/parse_args.h
+++ b/examples/parse_args.h
@@ -249,6 +249,8 @@
     }
   }
   while (next_option != -1);
+#else /* HAVE_GETOPT_H */
+  int optind = 1;
 #endif /* HAVE_GETOPT_H */
 
   // if unique, use the non option argument as the source