--- main.cxx.orig	Fri Feb 26 02:17:54 1999
+++ main.cxx	Tue Nov 19 05:27:27 2002
@@ -4,6 +4,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #if !defined (WIN32)
 #include <strings.h>
 #endif
@@ -779,7 +780,6 @@
   DIR *dp;
   if ((dp = opendir (dir)) == NULL)
     {
-      closedir (dp);
       return 0;
     }
   closedir (dp);
