mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Need extern decl. for fdatasync() in case it exists but isn't declared
anywhere (or, more likely, the declaration requires a magical combination of _POSIX defines).
This commit is contained in:
parent
e6c2cf1c3d
commit
5d00b6d459
1 changed files with 2 additions and 2 deletions
|
|
@ -619,7 +619,6 @@ posix_fsync(self, args)
|
||||||
PyObject *self;
|
PyObject *self;
|
||||||
PyObject *args;
|
PyObject *args;
|
||||||
{
|
{
|
||||||
|
|
||||||
return posix_int(args, fsync);
|
return posix_int(args, fsync);
|
||||||
}
|
}
|
||||||
#endif /* HAVE_FSYNC */
|
#endif /* HAVE_FSYNC */
|
||||||
|
|
@ -630,12 +629,13 @@ static char posix_fdatasync__doc__[] =
|
||||||
force write of file with filedescriptor to disk.\n\
|
force write of file with filedescriptor to disk.\n\
|
||||||
does not force update of metadata.";
|
does not force update of metadata.";
|
||||||
|
|
||||||
|
extern int fdatasync(int); /* Prototype just in case */
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
posix_fdatasync(self, args)
|
posix_fdatasync(self, args)
|
||||||
PyObject *self;
|
PyObject *self;
|
||||||
PyObject *args;
|
PyObject *args;
|
||||||
{
|
{
|
||||||
|
|
||||||
return posix_int(args, fdatasync);
|
return posix_int(args, fdatasync);
|
||||||
}
|
}
|
||||||
#endif /* HAVE_FDATASYNC */
|
#endif /* HAVE_FDATASYNC */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue