Need extern decl. for fdatasync() in case it exists but isn't declared
anywhere (or, more likely, the declaration requires a magical
combination of _POSIX defines).
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 2441237..be2cd14 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -619,7 +619,6 @@
PyObject *self;
PyObject *args;
{
-
return posix_int(args, fsync);
}
#endif /* HAVE_FSYNC */
@@ -630,12 +629,13 @@
force write of file with filedescriptor to disk.\n\
does not force update of metadata.";
+extern int fdatasync(int); /* Prototype just in case */
+
static PyObject *
posix_fdatasync(self, args)
PyObject *self;
PyObject *args;
{
-
return posix_int(args, fdatasync);
}
#endif /* HAVE_FDATASYNC */