aboutsummaryrefslogtreecommitdiff
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2022-01-03 13:01:04 +0000
committerGitHub <noreply@github.com>2022-01-03 15:01:04 +0200
commitc960b191b8999a9455bb4b2c50dc224d06fee80c (patch)
tree5ce812dca3b2e7b19b8ddf62b9df22399f28bc1a /Modules/posixmodule.c
parent549e62827262264cda30455e10e315602129da72 (diff)
downloadcpython3-c960b191b8999a9455bb4b2c50dc224d06fee80c.tar.gz
bpo-46222: posixmodule sendfile FreeBSD's constants updates. (GH-30327)
* posixodule sendfile FreeBSD's constants updates. * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index b3a5757a82..21adf806a4 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -15170,12 +15170,16 @@ all_ins(PyObject *m)
#ifdef SF_NODISKIO
if (PyModule_AddIntMacro(m, SF_NODISKIO)) return -1;
#endif
+ /* is obsolete since the 11.x release */
#ifdef SF_MNOWAIT
if (PyModule_AddIntMacro(m, SF_MNOWAIT)) return -1;
#endif
#ifdef SF_SYNC
if (PyModule_AddIntMacro(m, SF_SYNC)) return -1;
#endif
+#ifdef SF_NOCACHE
+ if (PyModule_AddIntMacro(m, SF_NOCACHE)) return -1;
+#endif
/* constants for posix_fadvise */
#ifdef POSIX_FADV_NORMAL