$NetBSD: patch-ac,v 1.1 2008/12/05 16:31:52 tron Exp $

--- src/input/path_input.cc.orig	2008-12-05 13:19:28 +0100
+++ src/input/path_input.cc	2008-12-05 13:25:19 +0100
@@ -42,7 +42,7 @@
 #include <rak/path.h>
 
 #include <sys/types.h>
-#include <sys/dir.h>
+#include <sys/stat.h>
 
 #include "path_input.h"
 
@@ -72,7 +72,7 @@
 
 struct _transform_filename {
   void operator () (utils::directory_entry& entry) {
-    if (entry.d_type == DT_DIR)
+    if (S_ISDIR(entry.d_type))
       entry.d_name += '/';
   }
 };
