mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
Update previous commit: #define _GNU_SOURCE if needed for strnlen()
This commit is contained in:
parent
5efa186908
commit
a59f93f32f
1 changed files with 4 additions and 0 deletions
|
|
@ -13,6 +13,10 @@
|
||||||
* <http://www.OpenLDAP.org/license.html>.
|
* <http://www.OpenLDAP.org/license.html>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(HAVE_STRNLEN) && !defined(_GNU_SOURCE)
|
||||||
|
#define _GNU_SOURCE 1 /* Get strnlen() from <string.h> */
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "portable.h"
|
#include "portable.h"
|
||||||
|
|
||||||
#include <ac/stdlib.h>
|
#include <ac/stdlib.h>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue