diff -ur speech-dispatcher-0.6.7.orig/src/modules/module_main.c speech-dispatcher-0.6.7/src/modules/module_main.c --- speech-dispatcher-0.6.7.orig/src/modules/module_main.c 2008-06-27 15:29:26.000000000 +0300 +++ speech-dispatcher-0.6.7/src/modules/module_main.c 2009-09-05 20:53:32.000000000 +0300 @@ -21,8 +21,9 @@ * $Id: module_main.c,v 1.16 2008-06-27 12:29:26 hanke Exp $ */ -/* So that gcc doesn't comply */ -int getline(char**, size_t*, FILE*); +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif #define PROCESS_CMD(command, function) \ if (!strcmp(cmd_buf, #command"\n")){ \ diff -ur speech-dispatcher-0.6.7.orig/src/modules/module_utils.h speech-dispatcher-0.6.7/src/modules/module_utils.h --- speech-dispatcher-0.6.7.orig/src/modules/module_utils.h 2008-07-30 11:53:07.000000000 +0300 +++ speech-dispatcher-0.6.7/src/modules/module_utils.h 2009-09-05 20:54:41.000000000 +0300 @@ -46,6 +46,10 @@ #include "spd_audio.h" +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif + typedef struct{ char* audio_output_method; char* audio_oss_device; @@ -419,10 +423,6 @@ void module_report_event_pause(void); - -/* So that gcc doesn't complain */ -int getline(char**, size_t*, FILE*); - pthread_mutex_t module_stdout_mutex; int module_utils_init(void);