From 89a44d8bc36e064fb431dd4d85d8cdee6be1e686 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Fri, 15 Jun 2007 18:43:07 +0000 Subject: FreeBSD portability fixes. * Remove usage of d_ino from utils/filename.c (it was checking for the inode being 0, and I cannot spot anywhere in UnixLib where it would explicitly do this anyway) * Add -D_XOPEN_SOURCE=600 to gcc command line, and replace old -D_POSIX_C_SOURCE to include =200112L (as that's the standard we use). svn path=/trunk/netsurf/; revision=3347 --- utils/filename.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') 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); -- cgit v1.2.3