]> git.mxchange.org Git - flightgear.git/commitdiff
fgadmin: include sys/stat if fltk < 1.3
authorFrederic Bouvier <fredfgfs01@free.fr>
Sat, 5 Nov 2011 06:28:44 +0000 (07:28 +0100)
committerFrederic Bouvier <fredfgfs01@free.fr>
Sat, 5 Nov 2011 06:28:44 +0000 (07:28 +0100)
utils/fgadmin/src/fgadmin_funcs.cxx

index 90f1c90125aeaa0e5de5de5059b930f7f747f360..642963597038951349b18e889633754821836890 100644 (file)
@@ -24,6 +24,7 @@
 #include <iostream>
 #include <string>
 #include <set>
+#include <sys/stat.h>
 
 #ifdef _WIN32
 #  include <direct.h>
@@ -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