freebsd-ports/audio/codec2/files/patch-src__freedv_api.c
Diane Bruce 9dcc41034f Thanks to Dima Panov <fluffy@FreeBSD.org> for pointing out it was
older compilers not clang 11 failing this. *sigh*

PR:		ports/248894
Submitted by:	vvd@unislabs.com
2020-08-25 23:27:40 +00:00

20 lines
416 B
C

--- src/freedv_api.c.orig 2018-05-29 05:59:17 UTC
+++ src/freedv_api.c
@@ -36,7 +36,7 @@
#ifdef __APPLE__
#include <malloc/malloc.h>
#else
-#include <malloc.h>
+#include <stdlib.h>
#endif /* __APPLE__ */
#include "fsk.h"
@@ -75,6 +75,8 @@
#define NORM_PWR_OFDM 1.00
/* OFDM payload data test frame for 700D */
+
+extern const struct OFDM_CONFIG * OFDM_CONFIG_700D;
extern int payload_data_bits[];