Module: kamailio
Branch: master
Commit: 947fe8673c3014f4d011583bed95d44408b907f4
URL:
https://github.com/kamailio/kamailio/commit/947fe8673c3014f4d011583bed95d44…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2016-05-17T13:24:05+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"
---
Modified: modules/xmlrpc/xmlrpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/947fe8673c3014f4d011583bed95d44…
Patch:
https://github.com/kamailio/kamailio/commit/947fe8673c3014f4d011583bed95d44…
---
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>