Module: kamailio Branch: master Commit: 08927c98edab0c1201138fbd4f9760dcdf3a35c1 URL: https://github.com/kamailio/kamailio/commit/08927c98edab0c1201138fbd4f9760dc...
Author: Victor Seva linuxmaniac@torreviejawireless.org Committer: Victor Seva linuxmaniac@torreviejawireless.org Date: 2016-05-17T13:20:45+02:00
db2_ldap: fix compiler warnings #612
CC (gcc) [M db2_ldap.so] ld_fld.o In file included from /usr/include/string.h:25:0, from ../../str.h:24, from ld_cfg.h:30, from ld_fld.h:37, from ld_fld.c:39: /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/db2_ldap/ld_fld.c
---
Diff: https://github.com/kamailio/kamailio/commit/08927c98edab0c1201138fbd4f9760dc... Patch: https://github.com/kamailio/kamailio/commit/08927c98edab0c1201138fbd4f9760dc...
---
diff --git a/modules/db2_ldap/ld_fld.c b/modules/db2_ldap/ld_fld.c index 2595742..0ba213c 100644 --- a/modules/db2_ldap/ld_fld.c +++ b/modules/db2_ldap/ld_fld.c @@ -35,6 +35,7 @@ #define _SVID_SOURCE 1 /* timegm */
#define _BSD_SOURCE /* snprintf */ +#define _DEFAULT_SOURCE 1 /* _BSD_SOURCE is deprecated */
#include "ld_fld.h"