mirror of
https://github.com/python/cpython.git
synced 2025-10-22 22:53:06 +00:00
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?)
This commit is contained in:
parent
4c6d21a790
commit
ecc23b07a9
1 changed files with 5 additions and 0 deletions
|
@ -702,6 +702,11 @@ posix_fsync(PyObject *self, PyObject *args)
|
||||||
#endif /* HAVE_FSYNC */
|
#endif /* HAVE_FSYNC */
|
||||||
|
|
||||||
#ifdef HAVE_FDATASYNC
|
#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__[] =
|
static char posix_fdatasync__doc__[] =
|
||||||
"fdatasync(fildes) -> None\n\
|
"fdatasync(fildes) -> None\n\
|
||||||
force write of file with filedescriptor to disk.\n\
|
force write of file with filedescriptor to disk.\n\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue