| | 11600 | Index: Modules/socketmodule.c |
|---|
| | 11601 | =================================================================== |
|---|
| | 11602 | --- Modules/socketmodule.c (revision 62417) |
|---|
| | 11603 | +++ Modules/socketmodule.c (working copy) |
|---|
| | 11604 | @@ -244,7 +244,7 @@ |
|---|
| | 11605 | # include <netdb.h> |
|---|
| | 11606 | |
|---|
| | 11607 | /* Headers needed for inet_ntoa() and inet_addr() */ |
|---|
| | 11608 | -# ifdef __BEOS__ |
|---|
| | 11609 | +# if defined(__BEOS__) && !defined(__HAIKU__) |
|---|
| | 11610 | # include <net/netdb.h> |
|---|
| | 11611 | # elif defined(PYOS_OS2) && defined(PYCC_VACPP) |
|---|
| | 11612 | # include <netdb.h> |
|---|
| | 11613 | @@ -3740,6 +3740,10 @@ |
|---|
| | 11614 | \n\ |
|---|
| | 11615 | Convert a packed IP address of the given family to string format."); |
|---|
| | 11616 | |
|---|
| | 11617 | +#ifndef INET_ADDRSTRLEN |
|---|
| | 11618 | +#define INET_ADDRSTRLEN 16 |
|---|
| | 11619 | +#endif |
|---|
| | 11620 | + |
|---|
| | 11621 | static PyObject * |
|---|
| | 11622 | socket_inet_ntop(PyObject *self, PyObject *args) |
|---|
| | 11623 | { |
|---|
| | 11624 | Index: Modules/socketmodule.h |
|---|
| | 11625 | =================================================================== |
|---|
| | 11626 | --- Modules/socketmodule.h (revision 62417) |
|---|
| | 11627 | +++ Modules/socketmodule.h (working copy) |
|---|
| | 11628 | @@ -2,7 +2,7 @@ |
|---|
| | 11629 | |
|---|
| | 11630 | /* Includes needed for the sockaddr_* symbols below */ |
|---|
| | 11631 | #ifndef MS_WINDOWS |
|---|
| | 11632 | -#ifdef __VMS |
|---|
| | 11633 | +# ifdef __VMS |
|---|
| | 11634 | # include <socket.h> |
|---|
| | 11635 | # else |
|---|
| | 11636 | # include <sys/socket.h> |
|---|
| | 11637 | @@ -41,6 +41,8 @@ |
|---|
| | 11638 | # undef AF_NETLINK |
|---|
| | 11639 | #endif |
|---|
| | 11640 | |
|---|
| | 11641 | +#undef HAVE_BLUETOOTH_BLUETOOTH_H |
|---|
| | 11642 | + |
|---|
| | 11643 | #ifdef HAVE_BLUETOOTH_BLUETOOTH_H |
|---|
| | 11644 | #include <bluetooth/bluetooth.h> |
|---|
| | 11645 | #include <bluetooth/rfcomm.h> |
|---|
| | 11646 | Index: Modules/selectmodule.c |
|---|
| | 11647 | =================================================================== |
|---|
| | 11648 | --- Modules/selectmodule.c (revision 62417) |
|---|
| | 11649 | +++ Modules/selectmodule.c (working copy) |
|---|
| | 11650 | @@ -49,7 +49,7 @@ |
|---|
| | 11651 | # include <winsock.h> |
|---|
| | 11652 | #else |
|---|
| | 11653 | # define SOCKET int |
|---|
| | 11654 | -# ifdef __BEOS__ |
|---|
| | 11655 | +# if defined(__BEOS__) && !defined(__HAIKU__) |
|---|
| | 11656 | # include <net/socket.h> |
|---|
| | 11657 | # elif defined(__VMS) |
|---|
| | 11658 | # include <socket.h> |
|---|
| | 11659 | Index: Modules/syslogmodule.c |
|---|
| | 11660 | =================================================================== |
|---|
| | 11661 | --- Modules/syslogmodule.c (revision 62417) |
|---|
| | 11662 | +++ Modules/syslogmodule.c (working copy) |
|---|
| | 11663 | @@ -136,7 +136,11 @@ |
|---|
| | 11664 | long pri; |
|---|
| | 11665 | if (!PyArg_ParseTuple(args, "l:LOG_UPTO", &pri)) |
|---|
| | 11666 | return NULL; |
|---|
| | 11667 | +#ifdef __HAIKU__ |
|---|
| | 11668 | + mask = 0; |
|---|
| | 11669 | +#else |
|---|
| | 11670 | mask = LOG_UPTO(pri); |
|---|
| | 11671 | +#endif |
|---|
| | 11672 | return PyInt_FromLong(mask); |
|---|
| | 11673 | } |
|---|
| | 11674 | |
|---|
| | 11675 | Index: Modules/resource.c |
|---|
| | 11676 | =================================================================== |
|---|
| | 11677 | --- Modules/resource.c (revision 62417) |
|---|
| | 11678 | +++ Modules/resource.c (working copy) |
|---|
| | 11679 | @@ -86,6 +86,7 @@ |
|---|
| | 11680 | PyFloat_FromDouble(doubletime(ru.ru_utime))); |
|---|
| | 11681 | PyStructSequence_SET_ITEM(result, 1, |
|---|
| | 11682 | PyFloat_FromDouble(doubletime(ru.ru_stime))); |
|---|
| | 11683 | +#ifndef __HAIKU__ |
|---|
| | 11684 | PyStructSequence_SET_ITEM(result, 2, PyInt_FromLong(ru.ru_maxrss)); |
|---|
| | 11685 | PyStructSequence_SET_ITEM(result, 3, PyInt_FromLong(ru.ru_ixrss)); |
|---|
| | 11686 | PyStructSequence_SET_ITEM(result, 4, PyInt_FromLong(ru.ru_idrss)); |
|---|
| | 11687 | @@ -100,6 +101,7 @@ |
|---|
| | 11688 | PyStructSequence_SET_ITEM(result, 13, PyInt_FromLong(ru.ru_nsignals)); |
|---|
| | 11689 | PyStructSequence_SET_ITEM(result, 14, PyInt_FromLong(ru.ru_nvcsw)); |
|---|
| | 11690 | PyStructSequence_SET_ITEM(result, 15, PyInt_FromLong(ru.ru_nivcsw)); |
|---|
| | 11691 | +#endif |
|---|
| | 11692 | |
|---|
| | 11693 | if (PyErr_Occurred()) { |
|---|
| | 11694 | Py_DECREF(result); |
|---|
| | 11695 | Index: Modules/spwdmodule.c |
|---|
| | 11696 | =================================================================== |
|---|
| | 11697 | --- Modules/spwdmodule.c (revision 62417) |
|---|
| | 11698 | +++ Modules/spwdmodule.c (working copy) |
|---|
| | 11699 | @@ -79,7 +79,9 @@ |
|---|
| | 11700 | |
|---|
| | 11701 | SETS(setIndex++, p->sp_namp); |
|---|
| | 11702 | SETS(setIndex++, p->sp_pwdp); |
|---|
| | 11703 | +#ifndef __HAIKU__ |
|---|
| | 11704 | SETI(setIndex++, p->sp_lstchg); |
|---|
| | 11705 | +#endif |
|---|
| | 11706 | SETI(setIndex++, p->sp_min); |
|---|
| | 11707 | SETI(setIndex++, p->sp_max); |
|---|
| | 11708 | SETI(setIndex++, p->sp_warn); |
|---|