include <sys/stat.h> instead of defining a 'struct stat'; this prevents
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 18 Mar 2005 03:56:06 +0000 (03:56 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 18 Mar 2005 03:56:06 +0000 (03:56 +0000)
problems with the 64bit interface of the filesystem functions

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1926 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/lib_internal/unify.h
util-vserver/src/vunify.h

index 346a058..60691eb 100644 (file)
 #ifndef H_UTIL_VSERVER_LIB_INTERNAL_UNIFY_H
 #define H_UTIL_VSERVER_LIB_INTERNAL_UNIFY_H
 
+#include <sys/stat.h>
 #include <stdbool.h>
 
-struct stat;
-
 bool
 Unify_unify(char const *src, struct stat const *src_stat,
            char const *dst, bool ignore_zero) NONNULL((1,2,3));
index 87568c0..a6e1072 100644 (file)
@@ -21,6 +21,8 @@
 
 #include "lib_internal/matchlist.h"
 
+#include <sys/stat.h>
+
 struct dirent;
 struct WalkdownInfo
 {
@@ -51,8 +53,6 @@ struct Arguments {
     bool                               do_renew;
 };
 
-struct stat;
-
 static bool    checkFstat(struct MatchList const * const,
                           PathInfo const * const,
                           PathInfo const * const,