]> granicus.if.org Git - python/commitdiff
Hopefully fix the problem with undeclared fdatasync() on HP-UX that
authorGuido van Rossum <guido@python.org>
Fri, 22 Sep 2000 16:01:05 +0000 (16:01 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 22 Sep 2000 16:01:05 +0000 (16:01 +0000)
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?)

Modules/posixmodule.c

index 71a880f997baed8ab846a29de661b97e5d970fb1..d0de19128af22c9fea2cd61e0db6b13f0a29f0cd 100644 (file)
@@ -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\