Module: kamailio
Branch: master
Commit: 149976aac40e027b9d04a257c063ac1c397d2c0c
URL:
https://github.com/kamailio/kamailio/commit/149976aac40e027b9d04a257c063ac1…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2016-05-17T13:43:26+02:00
fix compiler warning #612
fix compiler warnings due to
/usr/include/features.h:148:3: warning:
"_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
[-W#warnings]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
---
Modified: lib/srdb1/db_ut.c
Modified: modules/db2_ldap/ld_fld.c
Modified: modules/db_mysql/my_cmd.c
Modified: modules/presence_conference/pidf.c
Modified: modules/presence_dialoginfo/pidf.c
Modified: modules/presence_xml/pidf.c
Modified: modules/xmlrpc/xmlrpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/149976aac40e027b9d04a257c063ac1…
Patch:
https://github.com/kamailio/kamailio/commit/149976aac40e027b9d04a257c063ac1…
---
diff --git a/lib/srdb1/db_ut.c b/lib/srdb1/db_ut.c
index 6b3bad4..3431104 100644
--- a/lib/srdb1/db_ut.c
+++ b/lib/srdb1/db_ut.c
@@ -43,6 +43,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 */
#else
#define _XOPEN_SOURCE_EXTENDED 1 /* solaris */
#endif
diff --git a/modules/db2_ldap/ld_fld.c b/modules/db2_ldap/ld_fld.c
index 2595742..0ba213c 100644
--- a/modules/db2_ldap/ld_fld.c
+++ b/modules/db2_ldap/ld_fld.c
@@ -35,6 +35,7 @@
#define _SVID_SOURCE 1 /* timegm */
#define _BSD_SOURCE /* snprintf */
+#define _DEFAULT_SOURCE 1 /* _BSD_SOURCE is deprecated */
#include "ld_fld.h"
diff --git a/modules/db_mysql/my_cmd.c b/modules/db_mysql/my_cmd.c
index 8ee2e00..15c751a 100644
--- a/modules/db_mysql/my_cmd.c
+++ b/modules/db_mysql/my_cmd.c
@@ -29,6 +29,7 @@
#endif
#define _XOPEN_SOURCE_EXTENDED 1 /* solaris */
#define _SVID_SOURCE 1 /* timegm */
+#define _DEFAULT_SOURCE 1 /* _SVID_SOURCE is deprecated */
#include "my_cmd.h"
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 */
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
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 */
diff --git a/modules/xmlrpc/xmlrpc.c b/modules/xmlrpc/xmlrpc.c
index dabb526..cc4d37f 100644
--- a/modules/xmlrpc/xmlrpc.c
+++ b/modules/xmlrpc/xmlrpc.c
@@ -24,6 +24,7 @@
#endif
#define _XOPEN_SOURCE_EXTENDED 1 /* solaris */
#define _SVID_SOURCE 1 /* timegm */
+#define _DEFAULT_SOURCE 1 /* _SVID_SOURCE is deprecated */
#include <strings.h>
#include <time.h>