From: Peter Schlaile Date: Tue, 23 Sep 2008 19:14:15 +0000 (+0200) Subject: added options.c to automake, so that chan_lcr gets built correctly X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=1d89e5aebc31e5bb5c610e9fd350b50f66612590 added options.c to automake, so that chan_lcr gets built correctly --- diff --git a/Makefile.am b/Makefile.am index c29195a..762c1b3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -43,7 +43,7 @@ if ENABLE_ASTERISK_CHANNEL_DRIVER sbin_PROGRAMS = lcr genrc genextension chan_lcr.so chan_lcr_so_SOURCES = chan_lcr_so_LDFLAGS = -shared -chan_lcr_so_LDADD = chan_lcr.o bchannel.o +chan_lcr_so_LDADD = chan_lcr.o bchannel.o options.o chan_lcr.o: chan_lcr.c chan_lcr.h $(CC) $(INCLUDES) -D_GNU_SOURCE -c chan_lcr.c diff --git a/options.h b/options.h index df952b3..976aaba 100644 --- a/options.h +++ b/options.h @@ -8,6 +8,9 @@ ** options header file ** ** ** \*****************************************************************************/ +#ifdef __cplusplus +extern "C" { +#endif struct options { char log[128]; /* location of log file */ @@ -33,4 +36,7 @@ extern char options_error[256]; int read_options(void); +#ifdef __cplusplus +} +#endif