Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ecc23b0

Browse files
committed
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?)
1 parent 4c6d21a commit ecc23b0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Modules/posixmodule.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,11 @@ posix_fsync(PyObject *self, PyObject *args)
702702
#endif /* HAVE_FSYNC */
703703

704704
#ifdef HAVE_FDATASYNC
705+
706+
#if defined(__hppa) || defined(hppa)
707+
extern int fdatasync(int); /* On HP-UX, in libc but not in unistd.h */
708+
#endif
709+
705710
static char posix_fdatasync__doc__[] =
706711
"fdatasync(fildes) -> None\n\
707712
force write of file with filedescriptor to disk.\n\

0 commit comments

Comments
 (0)