Selaa lähdekoodia

g.access: LFS for wingrass

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43105 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 15 vuotta sitten
vanhempi
commit
39e872f86c
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      general/g.access/get_perms.c

+ 2 - 1
general/g.access/get_perms.c

@@ -1,10 +1,11 @@
+#include <grass/config.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include "access.h"
 
 int get_perms(char *path, int *perms, int *group, int *other)
 {
-    struct stat buf;
+    STRUCT_STAT buf;
 
     if (stat(path, &buf) != 0)
 	return -1;