summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-01-08 21:28:05 (GMT)
committerGuido van Rossum <guido@python.org>1999-01-08 21:28:05 (GMT)
commit5d00b6d459c9e52935e330b3e8b3731d80ad5b0b (patch)
tree7487ae1b5597b47440b6bfc9b1fde47b774115e1 /Modules
parente6c2cf1c3ddc55a0ffe43a956be890b71f5d3e34 (diff)
downloadcpython-5d00b6d459c9e52935e330b3e8b3731d80ad5b0b.zip
cpython-5d00b6d459c9e52935e330b3e8b3731d80ad5b0b.tar.gz
cpython-5d00b6d459c9e52935e330b3e8b3731d80ad5b0b.tar.bz2
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).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c4
1 files changed, 2 insertions, 2 deletions
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 @@ posix_fsync(self, args)
PyObject *self;
PyObject *args;
{
-
return posix_int(args, fsync);
}
#endif /* HAVE_FSYNC */
@@ -630,12 +629,13 @@ static char posix_fdatasync__doc__[] =
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 */