summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-09-22 16:01:05 (GMT)
committerGuido van Rossum <guido@python.org>2000-09-22 16:01:05 (GMT)
commitecc23b07a9fb688ee4c640bcbfc2fdbae1201943 (patch)
treef1148d42c420f6bb241614f52339ca1606ba39ed /Modules
parent4c6d21a7902a89465393b6bb95ab7cd1d1d36643 (diff)
downloadcpython-ecc23b07a9fb688ee4c640bcbfc2fdbae1201943.zip
cpython-ecc23b07a9fb688ee4c640bcbfc2fdbae1201943.tar.gz
cpython-ecc23b07a9fb688ee4c640bcbfc2fdbae1201943.tar.bz2
Hopefully fix the problem with undeclared fdatasync() on HP-UX that
was reported twice so far. Someone with access to HP-UX, please test this! (Is '__hppa' or 'hppa' really the correct symbol to test for?)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 71a880f..d0de191 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -702,6 +702,11 @@ posix_fsync(PyObject *self, PyObject *args)
#endif /* HAVE_FSYNC */
#ifdef HAVE_FDATASYNC
+
+#if defined(__hppa) || defined(hppa)
+extern int fdatasync(int); /* On HP-UX, in libc but not in unistd.h */
+#endif
+
static char posix_fdatasync__doc__[] =
"fdatasync(fildes) -> None\n\
force write of file with filedescriptor to disk.\n\