From f235681089b2abebdd4adc2ae1c0974ca7e13831 Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 29 Sep 2008 05:34:04 +0000 Subject: [PATCH] small FreeBSD patch from Erik dCL git-svn-id: svn+ssh://jackaudio.org/trunk/jack@2947 0c269be4-1314-0410-8aa9-9f06e86f4224 --- configure.ac | 2 +- tools/netsource.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 618cce6..a5c87d5 100644 --- a/configure.ac +++ b/configure.ac @@ -146,7 +146,7 @@ if test "x$JACK_USE_MACH_THREADS" != "x"; then fi # headers -AC_CHECK_HEADERS(string.h strings.h) +AC_CHECK_HEADERS(string.h strings.h alloca.h) AC_CHECK_HEADERS(getopt.h, [], [ for d in /Developer/SDKs/MacOSX10.3.0.sdk/usr/include/ ; do AC_CHECK_HEADERS($d/getopt.h, [], [CFLAGS="$CFLAGS -I$d"]) diff --git a/tools/netsource.c b/tools/netsource.c index 0037515..6e6fadb 100644 --- a/tools/netsource.c +++ b/tools/netsource.c @@ -25,6 +25,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * @brief This client connects a remote slave JACK to a local JACK server assumed to be the master */ + +#include "config.h" + #include #include #include @@ -34,7 +37,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #include #include +/* These two required by FreeBSD. */ +#include +#include + +#if HAVE_ALLOCA_H #include +#endif #include