Module: kamailio
Branch: master
Commit: 3c4fa1250c8c3de74e9415a064ba75f97e1cbb4f
URL:
https://github.com/kamailio/kamailio/commit/3c4fa1250c8c3de74e9415a064ba75f…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2016-05-17T12:09:02+02:00
db_mysql: fix compile warning #612
CC (gcc) [M db_mysql.so] my_cmd.o
In file included from /usr/include/string.h:25:0,
from ../../lib/srdb2/../../str.h:24,
from ../../lib/srdb2/db_gen.h:30,
from ../../lib/srdb2/db_drv.h:29,
from my_cmd.h:25,
from my_cmd.c:33:
/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/db_mysql/my_cmd.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3c4fa1250c8c3de74e9415a064ba75f…
Patch:
https://github.com/kamailio/kamailio/commit/3c4fa1250c8c3de74e9415a064ba75f…
---
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"