shithub: aubio

Download patch

ref: abb0ddb38d0671cdc4b2795a579b8d46b39bd130
parent: 0a22ba9cf6d4ed193b06f8606d7f1bfdb0ddcc9c
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Aug 18 22:28:15 EDT 2023

better plan9-specific config

--- a/src/mkfile
+++ b/src/mkfile
@@ -1,7 +1,7 @@
 </$objtype/mkfile
 
 LIB=libaubio.a$O
-CFLAGS=$CFLAGS -DHAVE_CONFIG_H -D__plan9__ -p -Iplan9 -I. -I/sys/include/npe
+CFLAGS=$CFLAGS -DHAVE_CONFIG_H=1 -DHAVE_AUBIO_DOUBLE=1 -D__plan9__ -p -Iplan9 -I. -I/sys/include/npe
 
 HFILES=\
 	aubio.h\
--- a/src/plan9/config.h
+++ b/src/plan9/config.h
@@ -1,6 +1,11 @@
-#define HAVE_AUBIO_DOUBLE 1
+#ifndef _plan9_config_h_
+#define _plan9_config_h_
+
+#define const
+
 #define HAVE_C99_VARARGS_MACROS 1
 #define HAVE_ERRNO_H 1
+#define HAVE_GETOPT_H
 #define HAVE_LIMITS_H 1
 #define HAVE_MATH_H 1
 #define HAVE_STDARG_H 1
@@ -8,3 +13,7 @@
 #define HAVE_STDLIB_H 1
 #define HAVE_STRING_H 1
 #define __STRICT_ANSI__
+
+#define HAVE_WAVREAD
+
+#endif