Skip to content

Commit 2a9eddf

Browse files
authored
bpo-41625: Add a guard for Linux for splice() constants in the os module (GH-23350)
1 parent e59958f commit 2a9eddf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15142,7 +15142,7 @@ all_ins(PyObject *m)
1514215142
#endif
1514315143

1514415144
/* constants for splice */
15145-
#ifdef HAVE_SPLICE
15145+
#if defined(HAVE_SPLICE) && defined(__linux__)
1514615146
if (PyModule_AddIntConstant(m, "SPLICE_F_MOVE", SPLICE_F_MOVE)) return -1;
1514715147
if (PyModule_AddIntConstant(m, "SPLICE_F_NONBLOCK", SPLICE_F_NONBLOCK)) return -1;
1514815148
if (PyModule_AddIntConstant(m, "SPLICE_F_MORE", SPLICE_F_MORE)) return -1;

0 commit comments

Comments
 (0)