Skip to content

Commit

Permalink
db2_ldap: fix compiler warnings #612
Browse files Browse the repository at this point in the history
> 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"

(cherry picked from commit 08927c9)
  • Loading branch information
linuxmaniac authored and miconda committed Jun 27, 2016
1 parent 5245837 commit 387ed08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/db2_ldap/ld_fld.c
Expand Up @@ -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"

Expand Down

0 comments on commit 387ed08

Please sign in to comment.