From 2e2accfe06871df259a4fdf6ab94ad81e28fde98 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Sat, 5 Nov 2011 07:28:44 +0100 Subject: [PATCH] fgadmin: include sys/stat if fltk < 1.3 --- utils/fgadmin/src/fgadmin_funcs.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/fgadmin/src/fgadmin_funcs.cxx b/utils/fgadmin/src/fgadmin_funcs.cxx index 90f1c9012..642963597 100644 --- a/utils/fgadmin/src/fgadmin_funcs.cxx +++ b/utils/fgadmin/src/fgadmin_funcs.cxx @@ -24,6 +24,7 @@ #include #include #include +#include #ifdef _WIN32 # include @@ -255,7 +256,7 @@ void FGAdminUI::install_selected() { f = install_box->text( i ); SGPath file( source ); file.append( f ); - struct stat info; + struct ::stat info; #if (FL_MAJOR_VERSION > 1 || ( FL_MAJOR_VERSION == 1 && FL_MINOR_VERSION >= 3 )) fl_stat( file.str().c_str(), &info ); #else