Commit 1451f829 authored by Tom Anderson's avatar Tom Anderson Committed by Akira TAGOH

Fix build with CFLAGS="-std=c11 -D_GNU_SOURCE"

parent 9f1b92f2
...@@ -22,9 +22,6 @@ ...@@ -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, ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment