--- speech-dispatcher-0.6.7.orig/configure.in 2008-07-30 16:27:54.000000000 +0300 +++ speech-dispatcher-0.6.7.orig/configure.in 2009-09-07 18:43:10.000000000 +0300 @@ -25,6 +25,9 @@ AC_PROG_GCC_TRADITIONAL AC_CHECK_FUNCS(select socket) +AC_GNU_SOURCE +AC_CHECK_FUNCS([getline]) + AC_PROG_INSTALL AC_PROG_MAKE_SET --- speech-dispatcher-0.6.7.orig/src/modules/module_main.c 2008-06-27 15:29:26.000000000 +0300 +++ speech-dispatcher-0.6.7.orig/src/modules/module_main.c 2009-09-07 18:45:54.000000000 +0300 @@ -21,8 +21,12 @@ * $Id: module_main.c,v 1.16 2008-06-27 12:29:26 hanke Exp $ */ +#include "config.h" + +#ifndef HAVE_GETLINE /* So that gcc doesn't comply */ int getline(char**, size_t*, FILE*); +#endif #define PROCESS_CMD(command, function) \ if (!strcmp(cmd_buf, #command"\n")){ \ --- speech-dispatcher-0.6.7.orig/src/modules/module_utils.h 2008-07-30 11:53:07.000000000 +0300 +++ speech-dispatcher-0.6.7.orig/src/modules/module_utils.h 2009-09-07 18:46:18.000000000 +0300 @@ -45,6 +45,7 @@ #include #include "spd_audio.h" +#include "config.h" typedef struct{ char* audio_output_method; @@ -419,9 +420,10 @@ void module_report_event_pause(void); - +#ifndef HAVE_GETLINE /* So that gcc doesn't complain */ int getline(char**, size_t*, FILE*); +#endif pthread_mutex_t module_stdout_mutex;