Module: kamailio
Branch: master
Commit: 3976224f6bb4b790b1752a00174439a1e2de1665
URL:
https://github.com/kamailio/kamailio/commit/3976224f6bb4b790b1752a00174439a…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2016-05-17T13:02:22+02:00
presence_conference: fix compiler warnings #612
CC (gcc) [M presence_conference.so] pidf.o
In file included from /usr/include/time.h:27:0,
from pidf.c:49:
/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_conference/pidf.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3976224f6bb4b790b1752a00174439a…
Patch:
https://github.com/kamailio/kamailio/commit/3976224f6bb4b790b1752a00174439a…
---
diff --git a/modules/presence_conference/pidf.c b/modules/presence_conference/pidf.c
index 7af6c82..1f64e14 100644
--- a/modules/presence_conference/pidf.c
+++ b/modules/presence_conference/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 */
#define _DARWIN_C_SOURCE 1
#else
#define _XOPEN_SOURCE_EXTENDED 1 /* solaris */