added options.c to automake, so that chan_lcr gets built correctly
authorPeter Schlaile <root@asterisk.schlaile.de>
Tue, 23 Sep 2008 19:14:15 +0000 (21:14 +0200)
committerroot <root@asterisk.schlaile.de>
Tue, 23 Sep 2008 19:14:15 +0000 (21:14 +0200)
Makefile.am
options.h

index c29195a..762c1b3 100644 (file)
@@ -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
 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
 
 chan_lcr.o: chan_lcr.c chan_lcr.h
        $(CC) $(INCLUDES) -D_GNU_SOURCE -c chan_lcr.c
index df952b3..976aaba 100644 (file)
--- a/options.h
+++ b/options.h
@@ -8,6 +8,9 @@
 ** options header file                                                       **
 **                                                                           **
 \*****************************************************************************/ 
 ** options header file                                                       **
 **                                                                           **
 \*****************************************************************************/ 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 struct options {
        char    log[128];               /* location of log file */
 
 struct options {
        char    log[128];               /* location of log file */
@@ -33,4 +36,7 @@ extern char options_error[256];
 
 int read_options(void);
 
 
 int read_options(void);
 
+#ifdef __cplusplus
+}
+#endif