From a0b6661eb6980095f24d6317a31404596d70ba8c Mon Sep 17 00:00:00 2001 From: James Bursa Date: Mon, 29 Jan 2007 22:27:15 +0000 Subject: Make GTK build compile on FreeBSD. svn path=/trunk/netsurf/; revision=3154 --- render/box_construct.c | 1 + render/directory.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'render') diff --git a/render/box_construct.c b/render/box_construct.c index 4244f1337..c7c91fee3 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "libxml/HTMLparser.h" #include "libxml/parserInternals.h" #include "netsurf/utils/config.h" diff --git a/render/directory.c b/render/directory.c index 1449b46f0..c64d05a77 100644 --- a/render/directory.c +++ b/render/directory.c @@ -101,8 +101,8 @@ bool directory_convert(struct content *c, int width, int height) { return false; } while ((entry = readdir(parent)) != NULL) { - if ((entry->d_ino == 0) || (!strcmp(entry->d_name, ".")) || - (!strcmp(entry->d_name, ".."))) + if (!strcmp(entry->d_name, ".") || + !strcmp(entry->d_name, "..")) continue; snprintf(buffer, sizeof(buffer), "%s\n", -- cgit v1.2.3