[sr-dev] git:4.3:15822006: xmlrpc: fix compiler warning #612
Daniel-Constantin Mierla
miconda at gmail.com
Wed Jun 8 09:31:24 CEST 2016
Module: kamailio
Branch: 4.3
Commit: 1582200618c8be92ac5aab0e15d2aaf82f8bfa57
URL: https://github.com/kamailio/kamailio/commit/1582200618c8be92ac5aab0e15d2aaf82f8bfa57
Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-06-08T09:31: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)
(cherry picked from commit 42be15030909cf31cedbb3642e2a6b51b2b5ae9f)
---
Modified: modules/xmlrpc/xmlrpc.c
---
Diff: https://github.com/kamailio/kamailio/commit/1582200618c8be92ac5aab0e15d2aaf82f8bfa57.diff
Patch: https://github.com/kamailio/kamailio/commit/1582200618c8be92ac5aab0e15d2aaf82f8bfa57.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