commit | 9d36fd2acbe618796ecfcb1dd6cb04e9d0f44c8f | [log] [tgz] |
---|---|---|
author | Gregory P. Smith <greg@mad-scientist.com> | Fri Jul 03 20:48:31 2009 +0000 |
committer | Gregory P. Smith <greg@mad-scientist.com> | Fri Jul 03 20:48:31 2009 +0000 |
tree | 0cde3464e418323eae7aa540fa7e7b049c8bed5e | |
parent | 9ad7bbc6370e370b3da7c60cc1ca74774d11957c [diff] [blame] |
Adds the select.PIPE_BUF attribute to expose the system constant.
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 2638bdc..a405812 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c
@@ -1746,6 +1746,8 @@ Py_INCREF(SelectError); PyModule_AddObject(m, "error", SelectError); + PyModule_AddIntConstant(m, "PIPE_BUF", PIPE_BUF); + #if defined(HAVE_POLL) #ifdef __APPLE__ if (select_have_broken_poll()) {