[sr-dev] git:4.4:42be1503: xmlrpc: fix compiler warning #612

Daniel-Constantin Mierla miconda at gmail.com
Wed Jun 8 09:28:38 CEST 2016


Module: kamailio
Branch: 4.4
Commit: 42be15030909cf31cedbb3642e2a6b51b2b5ae9f
URL: https://github.com/kamailio/kamailio/commit/42be15030909cf31cedbb3642e2a6b51b2b5ae9f

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-06-08T09:28:20+02:00

xmlrpc: fix compiler warning #612

> CC (gcc) [M xmlrpc.so]		xmlrpc.o
> In file included from /usr/include/strings.h:26:0,
>                  from xmlrpc.c:28:
> /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"

(cherry picked from commit 947fe8673c3014f4d011583bed95d44408b907f4)

---

Modified: modules/xmlrpc/xmlrpc.c

---

Diff:  https://github.com/kamailio/kamailio/commit/42be15030909cf31cedbb3642e2a6b51b2b5ae9f.diff
Patch: https://github.com/kamailio/kamailio/commit/42be15030909cf31cedbb3642e2a6b51b2b5ae9f.patch

---

diff --git a/modules/xmlrpc/xmlrpc.c b/modules/xmlrpc/xmlrpc.c
index 16221e9..98835f9 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>




More information about the sr-dev mailing list