|
@@ -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;
|