stop defining _XOPEN_SOURCE

This is necessary with some libc as it overrides _POSIX_C_SOURCE
and removes definitions of scandir etc.
This commit is contained in:
Vincent Sanders 2018-09-06 11:33:02 +01:00
parent 39176736b3
commit 6ce6b62099
4 changed files with 2 additions and 5 deletions

View File

@ -23,7 +23,6 @@ CFLAGS += '-DNETSURF_FB_FONT_FANTASY="$(NETSURF_FB_FONT_FANTASY)"'
CFLAGS += -std=c99 -g -Dsmall \
-D_BSD_SOURCE \
-D_DEFAULT_SOURCE \
-D_XOPEN_SOURCE=600 \
-D_POSIX_C_SOURCE=200809L
LDFLAGS += -lm

View File

@ -37,7 +37,6 @@ GTKCFLAGS := -std=c99 -Dgtk -Dnsgtk -g \
$(GTKDEPFLAGS) \
-D_BSD_SOURCE \
-D_DEFAULT_SOURCE \
-D_XOPEN_SOURCE=600 \
-D_POSIX_C_SOURCE=200809L \
-D_NETBSD_SOURCE \
-DGTK_RESPATH=\"$(NETSURF_GTK_RES_PATH)\"

View File

@ -12,7 +12,6 @@ CWARNFLAGS += -Werror
CFLAGS += -std=c99 -Dmonkey -Dnsmonkey -g \
-D_BSD_SOURCE \
-D_DEFAULT_SOURCE \
-D_XOPEN_SOURCE=700 \
-D_POSIX_C_SOURCE=200809L \
-D_NETBSD_SOURCE \
-DMONKEY_RESPATH=\"$(NETSURF_MONKEY_RESOURCES)\"

View File

@ -28,8 +28,8 @@
* utils config header include.
*/
#ifndef _NETSURF_UTILS_DIRENT_H_
#define _NETSURF_UTILS_DIRENT_H_
#ifndef NETSURF_UTILS_DIRENT_H
#define NETSURF_UTILS_DIRENT_H
#include "utils/config.h"