fix buildbot reported problems (unix related), part 1
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 29 Apr 2005 20:05:39 +0000 (20:05 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 29 Apr 2005 20:05:39 +0000 (20:05 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14234 f5534014-38df-0310-8fa8-9805f1628bb7

fileset.c

index 15a8f6703a0c2a1e613849fb430e33ed01d3f1d7..f8d2c34ffd74fb9f15dd20d7bcaa68cff2fecf9c 100644 (file)
--- a/fileset.c
+++ b/fileset.c
@@ -42,6 +42,7 @@
 # include <sys/wait.h>
 #endif
 
+#include <string.h>
 
 #include <glib.h>
 
@@ -160,18 +161,18 @@ fileset_entry *
 fileset_add_file(const char *dirname, const char *fname, gboolean current)
 {
     int fh, result;
-    struct _stat buf;
+    struct stat buf;
     char *path;
     fileset_entry *entry = NULL;
 
 
     path = g_strdup_printf("%s%s", dirname, fname);
 
-    fh = open( path, _O_RDONLY );
+    fh = open( path, O_RDONLY );
     if(fh !=  -1) {
 
         /* Get statistics */
-        result = _fstat( fh, &buf );
+        result = fstat( fh, &buf );
 
         /* Show statistics if they are valid */
         if( result == 0 ) {
@@ -187,7 +188,7 @@ fileset_add_file(const char *dirname, const char *fname, gboolean current)
             set.entries = g_list_append(set.entries, entry);
         }
 
-        _close(fh);
+        close(fh);
     }
 
     g_free(path);