Module: kamailio Branch: master Commit: 9f1aa931dafc0d654af4d51b5e4ab6a72a71fb0c URL: https://github.com/kamailio/kamailio/commit/9f1aa931dafc0d654af4d51b5e4ab6a7...
Author: Victor Seva linuxmaniac@torreviejawireless.org Committer: Victor Seva linuxmaniac@torreviejawireless.org Date: 2016-05-17T13:23:11+02:00
presence_xml: fix compiler warning #612
CC (gcc) [M presence_xml.so] pidf.o In file included from /usr/include/time.h:27:0, from pidf.c:50: /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_xml/pidf.c
---
Diff: https://github.com/kamailio/kamailio/commit/9f1aa931dafc0d654af4d51b5e4ab6a7... Patch: https://github.com/kamailio/kamailio/commit/9f1aa931dafc0d654af4d51b5e4ab6a7...
---
diff --git a/modules/presence_xml/pidf.c b/modules/presence_xml/pidf.c index fca87b3..7644f89 100644 --- a/modules/presence_xml/pidf.c +++ b/modules/presence_xml/pidf.c @@ -42,6 +42,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 */ #define _DARWIN_C_SOURCE 1 #else #define _XOPEN_SOURCE_EXTENDED 1 /* solaris */