git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43108 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -1,3 +1,4 @@
+#include <grass/config.h>
#include <grass/dbmi.h>
#include <unistd.h>
#include <sys/types.h>
@@ -11,7 +12,7 @@
*/
int db_isdir(const char *path)
{
- struct stat x;
+ STRUCT_STAT x;
if (stat(path, &x) != 0)
return DB_FAILED;