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

This commit is contained in:
Tom Anderson 2018-07-25 16:35:54 -07:00 committed by Akira TAGOH
parent 9f1b92f27f
commit 1451f829e7
1 changed files with 1 additions and 5 deletions

View File

@ -22,9 +22,6 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef _GNU_SOURCE
#undef _GNU_SOURCE /* To use the POSIX version of strerror_r */
#endif
#include <string.h>
#include "fcint.h"
#include <fcntl.h>
@ -3474,8 +3471,7 @@ _FcConfigParse (FcConfig *config,
char ebuf[BUFSIZ+1];
#if HAVE_STRERROR_R
int x FC_UNUSED;
x = strerror_r (errno_, ebuf, BUFSIZ); /* make sure we use the POSIX version of strerror_r */
strerror_r (errno_, ebuf, BUFSIZ);
#elif HAVE_STRERROR
char *tmp = strerror (errno_);
size_t len = strlen (tmp);