summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/posixmodule.c')
-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\