A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2020-November/168122.html below:

[Python-checkins] bpo-41625: Add a guard for Linux for splice() constants in the os module (GH-23350)

[Python-checkins] bpo-41625: Add a guard for Linux for splice() constants in the os module (GH-23350) [Python-checkins] bpo-41625: Add a guard for Linux for splice() constants in the os module (GH-23350)miss-islington webhook-mailer at python.org
Tue Nov 17 14:57:55 EST 2020
https://github.com/python/cpython/commit/2a9eddf070f72060f62db1856a0af2e08729a46c
commit: 2a9eddf070f72060f62db1856a0af2e08729a46c
branch: master
author: Pablo Galindo <Pablogsal at gmail.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2020-11-17T11:57:49-08:00
summary:

bpo-41625: Add a guard for Linux for splice() constants in the os module (GH-23350)

files:
M Modules/posixmodule.c

diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index ecab147d2f38e..703309f58687d 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -15142,7 +15142,7 @@ all_ins(PyObject *m)
 #endif
 
 /* constants for splice */
-#ifdef HAVE_SPLICE
+#if defined(HAVE_SPLICE) && defined(__linux__)
     if (PyModule_AddIntConstant(m, "SPLICE_F_MOVE", SPLICE_F_MOVE)) return -1;
     if (PyModule_AddIntConstant(m, "SPLICE_F_NONBLOCK", SPLICE_F_NONBLOCK)) return -1;
     if (PyModule_AddIntConstant(m, "SPLICE_F_MORE", SPLICE_F_MORE)) return -1;

More information about the Python-checkins mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4