summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--options.h6
2 files changed, 7 insertions, 1 deletions
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