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