[sr-dev] git:4.2:851a06c6: xmlrpc: fix compiler warning #612
Daniel-Constantin Mierla
miconda at gmail.com
Wed Jun 8 09:35:09 CEST 2016
Module: kamailio
Branch: 4.2
Commit: 851a06c6f6a9f142b6c1fd51cd4a3d5b39ef5831
URL: https://github.com/kamailio/kamailio/commit/851a06c6f6a9f142b6c1fd51cd4a3d5b39ef5831
Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-06-08T09:34:56+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)
(cherry picked from commit 1582200618c8be92ac5aab0e15d2aaf82f8bfa57)
---
Modified: modules/xmlrpc/xmlrpc.c
---
Diff: https://github.com/kamailio/kamailio/commit/851a06c6f6a9f142b6c1fd51cd4a3d5b39ef5831.diff
Patch: https://github.com/kamailio/kamailio/commit/851a06c6f6a9f142b6c1fd51cd4a3d5b39ef5831.patch
---
diff --git a/modules/xmlrpc/xmlrpc.c b/modules/xmlrpc/xmlrpc.c
index 6743a30..7ba2e90 100644
--- a/modules/xmlrpc/xmlrpc.c
+++ b/modules/xmlrpc/xmlrpc.c
@@ -28,6 +28,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