Module: kamailio
Branch: master
Commit: e8c7b29e1d051619595f2d45276d8c775bc278a3
URL:
https://github.com/kamailio/kamailio/commit/e8c7b29e1d051619595f2d45276d8c7…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)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/e8c7b29e1d051619595f2d45276d8c7…
Patch:
https://github.com/kamailio/kamailio/commit/e8c7b29e1d051619595f2d45276d8c7…
---
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