Fix build with CFLAGS="-std=c11 -D_GNU_SOURCE"
This commit is contained in:
parent
9f1b92f27f
commit
1451f829e7
|
@ -22,9 +22,6 @@
|
||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef _GNU_SOURCE
|
|
||||||
#undef _GNU_SOURCE /* To use the POSIX version of strerror_r */
|
|
||||||
#endif
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "fcint.h"
|
#include "fcint.h"
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
@ -3474,8 +3471,7 @@ _FcConfigParse (FcConfig *config,
|
||||||
char ebuf[BUFSIZ+1];
|
char ebuf[BUFSIZ+1];
|
||||||
|
|
||||||
#if HAVE_STRERROR_R
|
#if HAVE_STRERROR_R
|
||||||
int x FC_UNUSED;
|
strerror_r (errno_, ebuf, BUFSIZ);
|
||||||
x = strerror_r (errno_, ebuf, BUFSIZ); /* make sure we use the POSIX version of strerror_r */
|
|
||||||
#elif HAVE_STRERROR
|
#elif HAVE_STRERROR
|
||||||
char *tmp = strerror (errno_);
|
char *tmp = strerror (errno_);
|
||||||
size_t len = strlen (tmp);
|
size_t len = strlen (tmp);
|
||||||
|
|
Loading…
Reference in New Issue