From 9fa55c904936b83c62159dd0c7fcb6544e65f688 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Mon, 3 Sep 2007 07:38:46 +0000 Subject: [PATCH] fixed declaration of 'struct stat' include 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib_internal/util-safechdir.h b/lib_internal/util-safechdir.h index 656953d..8ab48c9 100644 --- a/lib_internal/util-safechdir.h +++ b/lib_internal/util-safechdir.h @@ -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 + int safeChdir(char const *, struct stat const *exp_stat) NONNULL((1,2)); #define EsafeChdir(PATH,EXP_STAT) \ -- 1.8.1.5