git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43113 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -12,6 +12,7 @@
* for details.
*
*****************************************************************************/
+#include <grass/config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -129,7 +130,7 @@ static void find_maps(void)
return;
while ((ent = readdir(dir)) != NULL) {
- struct stat buf;
+ STRUCT_STAT buf;
if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, ".."))
continue;