Module: kamailio Branch: master Commit: 09470aed719b0fad6c600d9c18a339e343550f33 URL: https://github.com/kamailio/kamailio/commit/09470aed719b0fad6c600d9c18a339e3...
Author: Victor Seva linuxmaniac@torreviejawireless.org Committer: Victor Seva linuxmaniac@torreviejawireless.org Date: 2016-05-17T12:08:14+02:00
lib/srdb1: fix compiler warning #612
CC (gcc) [L libsrdb1.so.1.0] db_ut.o In file included from /usr/include/time.h:27:0, from db_ut.c:50: /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: lib/srdb1/db_ut.c
---
Diff: https://github.com/kamailio/kamailio/commit/09470aed719b0fad6c600d9c18a339e3... Patch: https://github.com/kamailio/kamailio/commit/09470aed719b0fad6c600d9c18a339e3...
---
diff --git a/lib/srdb1/db_ut.c b/lib/srdb1/db_ut.c index 6b3bad4..3431104 100644 --- a/lib/srdb1/db_ut.c +++ b/lib/srdb1/db_ut.c @@ -43,6 +43,7 @@ #define _BSD_SOURCE 1 /* needed on linux to "fix" the effect * of the above define on * features.h/unistd.h syscall() */ + #define _DEFAULT_SOURCE 1 /* _BSD_SOURCE is deprecated */ #else #define _XOPEN_SOURCE_EXTENDED 1 /* solaris */ #endif