mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Changes for BeOS, QNX and long long, by Chris Herborth.
This commit is contained in:
parent
1a8791e0b8
commit
bcc207484a
12 changed files with 132 additions and 14 deletions
|
@ -33,6 +33,8 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
Under Unix, the file descriptors are small integers.
|
||||
Under Win32, select only exists for sockets, and sockets may
|
||||
have any value except INVALID_SOCKET.
|
||||
Under BeOS, we suffer the same dichotomy as Win32; sockets can be anything
|
||||
>= 0.
|
||||
*/
|
||||
|
||||
#include "Python.h"
|
||||
|
@ -56,9 +58,14 @@ extern void bzero();
|
|||
#ifdef MS_WINDOWS
|
||||
#include <winsock.h>
|
||||
#else
|
||||
#ifdef __BEOS__
|
||||
#include <net/socket.h>
|
||||
#define SOCKET int
|
||||
#else
|
||||
#include "myselect.h" /* Also includes mytime.h */
|
||||
#define SOCKET int
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static PyObject *SelectError;
|
||||
|
||||
|
@ -134,7 +141,7 @@ list2set(list, set, fd2obj)
|
|||
"argument must be an int, or have a fileno() method.");
|
||||
goto finally;
|
||||
}
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) || defined(__BEOS__)
|
||||
max = 0; /* not used for Win32 */
|
||||
#else /* !_MSC_VER */
|
||||
if (v < 0 || v >= FD_SETSIZE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue