  #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
  #include <bluetooth/bluetooth.h>
  #include <bluetooth/rfcomm.h>
-diff -urN Python-2.6.5/Modules/spwdmodule.c Python-2.6.5-haiku/Modules/spwdmodule.c
---- Python-2.6.5/Modules/spwdmodule.c	2008-06-09 04:58:54.003932160 +0000
-+++ Python-2.6.5-haiku/Modules/spwdmodule.c	2010-03-11 16:54:31.794820608 +0000
-@@ -79,7 +79,9 @@
+diff -up Python-2.6.5/Modules/spwdmodule.c.orig Python-2.6.5/Modules/spwdmodule.c
+--- Python-2.6.5/Modules/spwdmodule.c.orig	2008-06-08 22:58:54.041418752 -0600
++++ Python-2.6.5/Modules/spwdmodule.c	2010-04-26 15:46:55.977534976 -0600
+@@ -79,7 +79,9 @@ static PyObject *mkspent(struct spwd *p)
  
  	SETS(setIndex++, p->sp_namp);
  	SETS(setIndex++, p->sp_pwdp);

 	PyStructSequence_SET_ITEM(result, 2, PyInt_FromLong(ru.ru_maxrss));
 	PyStructSequence_SET_ITEM(result, 3, PyInt_FromLong(ru.ru_ixrss));
 	PyStructSequence_SET_ITEM(result, 4, PyInt_FromLong(ru.ru_idrss));
@@ -100,6 +101,7 @@
 	PyStructSequence_SET_ITEM(result, 13, PyInt_FromLong(ru.ru_nsignals));
 	PyStructSequence_SET_ITEM(result, 14, PyInt_FromLong(ru.ru_nvcsw));
 	PyStructSequence_SET_ITEM(result, 15, PyInt_FromLong(ru.ru_nivcsw));

+
+set -v
+python $H2PY -i '(u_long)' $HEADERS/posix/netinet/in.h
diff -up Python-2.6.5/Modules/resource.c.orig Python-2.6.5/Modules/resource.c
--- Python-2.6.5/Modules/resource.c.orig	2009-05-08 14:59:57.064225280 -0600
+++ Python-2.6.5/Modules/resource.c	2010-04-26 15:46:55.908853248 -0600
@@ -86,6 +86,7 @@ resource_getrusage(PyObject *self, PyObj
 			PyFloat_FromDouble(doubletime(ru.ru_utime)));
 	PyStructSequence_SET_ITEM(result, 1,
 			PyFloat_FromDouble(doubletime(ru.ru_stime)));
