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