From 1d89e5aebc31e5bb5c610e9fd350b50f66612590 Mon Sep 17 00:00:00 2001 From: Peter Schlaile Date: Tue, 23 Sep 2008 21:14:15 +0200 Subject: [PATCH] added options.c to automake, so that chan_lcr gets built correctly --- Makefile.am | 2 +- options.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.13.6