fixed declaration of 'struct stat'
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 3 Sep 2007 07:38:46 +0000 (07:38 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 3 Sep 2007 07:38:46 +0000 (07:38 +0000)
include <sys/stat.h> instead of declaring it with 'struct stat'
as it might cause conflicts when 'stat' is #defined as stat64
in this header

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

lib_internal/util-safechdir.h

index 656953d..8ab48c9 100644 (file)
@@ -19,7 +19,8 @@
 #ifndef H_UTIL_VSERVER_LIB_INTERNAL_UTIL_SAFECHDIR_H
 #define H_UTIL_VSERVER_LIB_INTERNAL_UTIL_SAFECHDIR_H
 
-struct stat;
+#include <sys/stat.h>
+
 int    safeChdir(char const *, struct stat const *exp_stat) NONNULL((1,2));
 
 #define EsafeChdir(PATH,EXP_STAT) \