summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2007-01-29 22:27:15 +0000
committerJames Bursa <james@netsurf-browser.org>2007-01-29 22:27:15 +0000
commita0b6661eb6980095f24d6317a31404596d70ba8c (patch)
treeb91c612d48815c03d05ec0466c543d85d72628c3 /render
parentb76283f3d52985abd24081bcbb9196ec440e10af (diff)
downloadnetsurf-a0b6661eb6980095f24d6317a31404596d70ba8c.tar.gz
netsurf-a0b6661eb6980095f24d6317a31404596d70ba8c.tar.bz2
Make GTK build compile on FreeBSD.
svn path=/trunk/netsurf/; revision=3154
Diffstat (limited to 'render')
-rw-r--r--render/box_construct.c1
-rw-r--r--render/directory.c4
2 files changed, 3 insertions, 2 deletions
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 <stdbool.h>
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#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), "<a href=\"%s/%s\">%s</a>\n",