summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile4
-rw-r--r--utils/filename.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/makefile b/makefile
index 40d135439..0b4165c79 100644
--- a/makefile
+++ b/makefile
@@ -129,9 +129,9 @@ CFLAGS_NCOS = $(CFLAGS_RISCOS) -Dncos
CFLAGS_DEBUG = -std=c99 -D_BSD_SOURCE -DDEBUG_BUILD $(WARNFLAGS) -I. \
$(PLATFORM_CFLAGS_DEBUG) -g
CFLAGS_GTK = -std=c99 -Dgtk -Dnsgtk \
- -D_BSD_SOURCE \
-DGTK_DISABLE_DEPRECATED \
- -D_POSIX_C_SOURCE \
+ -D_XOPEN_SOURCE=600 \
+ -D_POSIX_C_SOURCE=200112L \
$(WARNFLAGS) -I. -g -O0 -Wformat=2 \
`pkg-config --cflags libglade-2.0 gtk+-2.0` `xml2-config --cflags`
diff --git a/utils/filename.c b/utils/filename.c
index ce8afc00e..2f50aef16 100644
--- a/utils/filename.c
+++ b/utils/filename.c
@@ -309,7 +309,7 @@ bool filename_delete_recursive(char *folder) {
parent = opendir(folder);
while ((entry = readdir(parent))) {
- if ((entry->d_ino == 0) || (!strcmp(entry->d_name, ".")) ||
+ if ((!strcmp(entry->d_name, ".")) ||
(!strcmp(entry->d_name, "..")))
continue;
snprintf(child, 256, "%s/%s", folder, entry->d_name);