blob: 9a13f05721671ef3f0e0d14b7e1e1f75a20099fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef STRING_WRAPPER_H
#define STRING_WRAPPER_H 1
#include_next <string.h>
/* Glibc 2.7 has a bug in strtok_r when compiling with optimization that can
* cause segfaults if the delimiters argument is a compile-time constant that
* has exactly 1 character:
*
* http://sources.redhat.com/bugzilla/show_bug.cgi?id=5614
*
* The bug is only present in the inline version of strtok_r(), so force the
* out-of-line version to be used instead. */
#if HAVE_STRTOK_R_BUG
#undef strtok_r
#endif
#endif /* string.h wrapper */
|