diff --git a/extractaudio/Makefile.am b/extractaudio/Makefile.am index b1ad89568..088b5254e 100644 --- a/extractaudio/Makefile.am +++ b/extractaudio/Makefile.am @@ -18,7 +18,7 @@ extractaudio_SOURCES=extractaudio.c decoder.c rtpp_loader.c ${MAINSRCDIR}/rtp.c $(rtpp_netaddr_AUTOSRCS) eaud_oformats.c eaud_oformats.h rtpp_scan_pcap.c rtpp_scan_pcap.h \ eaud_pcap.c eaud_pcap.h eaud_substreams.c eaud_substreams.h extractaudio_LDADD=@LIBS_G729@ @LIBS_GSM@ @LIBS_G722@ @LIBS_SNDFILE@ -lm -lpthread -extractaudio_CPPFLAGS = -I$(RTPP_AUTOSRC_DIR) +extractaudio_CPPFLAGS = -I$(RTPP_AUTOSRC_DIR) -D_BSD_SOURCE if BUILD_CRYPTO extractaudio_SOURCES+=eaud_crypto.c eaud_crypto.h srtp_util.c srtp_util.h extractaudio_LDADD+=@LIBS_SRTP@ diff --git a/extractaudio/eaud_pcap.c b/extractaudio/eaud_pcap.c index d1e2d8ffd..19a31555a 100644 --- a/extractaudio/eaud_pcap.c +++ b/extractaudio/eaud_pcap.c @@ -25,6 +25,10 @@ * */ +#ifndef __FAVOR_BSD +#define __FAVOR_BSD +#endif /* __FAVOR_BSD */ + #include #include #include diff --git a/libexecinfo/execinfo_testfunc1.c b/libexecinfo/execinfo_testfunc1.c index c8f373e9f..6fdd471bb 100644 --- a/libexecinfo/execinfo_testfunc1.c +++ b/libexecinfo/execinfo_testfunc1.c @@ -25,6 +25,7 @@ * */ +#define _BSD_SOURCE #include #include "execinfo_testfunc1.h" diff --git a/makeann/Makefile.am b/makeann/Makefile.am index 2d3433f8d..0eb7d2096 100644 --- a/makeann/Makefile.am +++ b/makeann/Makefile.am @@ -8,7 +8,7 @@ extractaudio_SRCDIR=$(top_srcdir)/extractaudio makeann_SOURCES=makeann.c rtp.h g711.h $(extractaudio_SRCDIR)/g729_compat.c \ $(extractaudio_SRCDIR)/g729_compat.h makeann_LDADD=@LIBS_G729@ @LIBS_GSM@ @LIBS_G722@ -makeann_CPPFLAGS=-I$(extractaudio_SRCDIR) +makeann_CPPFLAGS=-I$(extractaudio_SRCDIR) -D_BSD_SOURCE makeann_debug_SOURCES = $(makeann_SOURCES) $(RTPP_MEMDEB_CORESRCS) makeann_debug_LDADD = $(makeann_LDADD) $(RTPP_MEMDEB_LDADD) diff --git a/modules/acct_csv/Makefile.am b/modules/acct_csv/Makefile.am index d73176a09..3f03de740 100644 --- a/modules/acct_csv/Makefile.am +++ b/modules/acct_csv/Makefile.am @@ -4,11 +4,12 @@ pkglib_LTLIBRARIES = rtpp_acct_csv.la rtpp_acct_csv_debug.la rtpp_acct_csv_la_SOURCES = rtpp_acct_csv.c rtpp_acct_csv_la_LDFLAGS = -avoid-version -module -shared -export-dynamic +rtpp_acct_csv_la_CPPFLAGS= -D_BSD_SOURCE rtpp_acct_csv_debug_la_SOURCES = ${rtpp_acct_csv_la_SOURCES} rtpp_acct_csv_debug_la_LIBADD = $(RTPP_MEMDEB_LDADD) rtpp_acct_csv_debug_la_LDFLAGS=${rtpp_acct_csv_la_LDFLAGS} -rtpp_acct_csv_debug_la_CPPFLAGS=-DRTPP_DEBUG +rtpp_acct_csv_debug_la_CPPFLAGS=$(rtpp_acct_csv_la_CPPFLAGS) -DRTPP_DEBUG rtpp_acct_csv_debug_la_CFLAGS=$(RTPP_MEMDEB_CFLAGS) DEFS= -Wall @DEFS@ diff --git a/modules/acct_rtcp_hep/Makefile.am b/modules/acct_rtcp_hep/Makefile.am index 904f63c07..23e21f379 100644 --- a/modules/acct_rtcp_hep/Makefile.am +++ b/modules/acct_rtcp_hep/Makefile.am @@ -14,14 +14,14 @@ rtpp_acct_rtcp_hep_la_SOURCES = rtpp_acct_rtcp_hep.c rtcp2json.c rtpp_sbuf.c \ rtpp_acct_rtcp_hep_la_LDFLAGS = -avoid-version -module -shared -export-dynamic rtpp_acct_rtcp_hep_la_CPPFLAGS = -DRTPP_MODULE -Dmalloc=mod_malloc \ -Dfree=mod_free -Drealloc=mod_realloc -I$(HEPSRCDIR) -I$(UCLSRCDIR)/include -rtpp_acct_rtcp_hep_la_CFLAGS=-std=c11 -D_XOPEN_SOURCE +rtpp_acct_rtcp_hep_la_CFLAGS=-std=c11 -D_BSD_SOURCE -D_XOPEN_SOURCE #rtpp_acct_rtcp_hep_la_LIBADD = -lz rtpp_acct_rtcp_hep_debug_la_SOURCES = $(rtpp_acct_rtcp_hep_la_SOURCES) rtpp_acct_rtcp_hep_debug_la_LIBADD = $(rtpp_acct_rtcp_hep_la_LIBADD) $(RTPP_MEMDEB_LDADD) rtpp_acct_rtcp_hep_debug_la_LDFLAGS=$(rtpp_acct_rtcp_hep_la_LDFLAGS) rtpp_acct_rtcp_hep_debug_la_CPPFLAGS=$(rtpp_acct_rtcp_hep_la_CPPFLAGS) -DRTPP_DEBUG -rtpp_acct_rtcp_hep_debug_la_CFLAGS=$(RTPP_MEMDEB_CFLAGS) -std=c11 -D_XOPEN_SOURCE +rtpp_acct_rtcp_hep_debug_la_CFLAGS=$(RTPP_MEMDEB_CFLAGS) $(rtpp_acct_rtcp_hep_la_CFLAGS) DEFS= -Wall @DEFS@ diff --git a/src/Makefile.am b/src/Makefile.am index 0df00e652..00e114129 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -96,7 +96,8 @@ rtpp_rzmalloc_perf_CFLAGS = $(EXTRA_CFLAGS) rtpp_rzmalloc_perf_CPPFLAGS = $(EXTRA_CPPFLAGS) RTPP_COMMON_CPPFLAGS=-DCFILE_PATH='"$(sysconfdir)/@PACKAGE@.conf"' \ - -DMDDIR_PATH='"$(libdir)/@PACKAGE@"' -I$(UCL_DIR)/include + -DMDDIR_PATH='"$(libdir)/@PACKAGE@"' -I$(UCL_DIR)/include \ + -D_BSD_SOURCE EXTRA_CFLAGS=-Werror=implicit-function-declaration -Wall EXTRA_CPPFLAGS = -I$(RTPP_AUTOSRC_DIR) @@ -113,7 +114,7 @@ rtpproxy_CFLAGS=$(EXTRA_CFLAGS) rtpproxy_CPPFLAGS=$(RTPP_COMMON_CPPFLAGS) $(EXTRA_CPPFLAGS) rtpp_objck_perf_CFLAGS=$(EXTRA_CFLAGS) -rtpp_objck_perf_CPPFLAGS=$(EXTRA_CPPFLAGS) +rtpp_objck_perf_CPPFLAGS=$(EXTRA_CPPFLAGS) -D_BSD_SOURCE rtpp_objck_CFLAGS=$(rtpp_objck_perf_CFLAGS) $(RTPP_MEMDEB_CFLAGS) rtpp_objck_CPPFLAGS=$(rtpp_objck_perf_CPPFLAGS) $(RTPP_MEMDEB_CPPFLAGS) -DMEMDEB_APP=rtpp_objck