[sr-dev] git:master:e8c7b29e: presence_dialoginfo: fix compiler warnings #612

Victor Seva linuxmaniac at torreviejawireless.org
Tue May 17 13:43:36 CEST 2016


Module: kamailio
Branch: master
Commit: e8c7b29e1d051619595f2d45276d8c775bc278a3
URL: https://github.com/kamailio/kamailio/commit/e8c7b29e1d051619595f2d45276d8c775bc278a3

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2016-05-17T13:22:18+02:00

presence_dialoginfo: fix compiler warnings #612

> CC (gcc) [M presence_dialoginfo.so]		pidf.o
> In file included from /usr/include/time.h:27:0,
>                  from pidf.c:48:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

---

Modified: modules/presence_dialoginfo/pidf.c

---

Diff:  https://github.com/kamailio/kamailio/commit/e8c7b29e1d051619595f2d45276d8c775bc278a3.diff
Patch: https://github.com/kamailio/kamailio/commit/e8c7b29e1d051619595f2d45276d8c775bc278a3.patch

---

diff --git a/modules/presence_dialoginfo/pidf.c b/modules/presence_dialoginfo/pidf.c
index 23e6bd3..51c845e 100644
--- a/modules/presence_dialoginfo/pidf.c
+++ b/modules/presence_dialoginfo/pidf.c
@@ -41,6 +41,7 @@
 	#define _BSD_SOURCE 1				/* needed on linux to "fix" the effect
 										  of the above define on
 										  features.h/unistd.h syscall() */
+	#define _DEFAULT_SOURCE 1			/* _BSD_SOURCE is deprecated */
 #elif defined __OS_solaris
 	#define _XOPEN_SOURCE_EXTENDED 1   /* solaris */
 #endif




More information about the sr-dev mailing list