 +def _FDMSKNO(fd): return ((fd) / NFDBITS)
 +
 +def _FDBITNO(fd): return ((fd) % NFDBITS)
-diff -urN Python-2.6.4rc1/Lib/plat-haiku1/regen Python-2.6.4rc1-haiku/Lib/plat-haiku1/regen
---- Python-2.6.4rc1/Lib/plat-haiku1/regen	1970-01-01 00:00:00.000000000 +0000
-+++ Python-2.6.4rc1-haiku/Lib/plat-haiku1/regen	2009-05-14 08:56:04.000000000 +0000
+diff -urN Python-2.6.4/Lib/plat-haiku1/regen Python-2.6.4-haiku/Lib/plat-haiku1/regen
+--- Python-2.6.4/Lib/plat-haiku1/regen	1970-01-01 00:00:00.000000000 +0000
++++ Python-2.6.4-haiku/Lib/plat-haiku1/regen	2009-05-14 08:56:04.000000000 +0000
 @@ -0,0 +1,7 @@
 +#! /bin/sh
 +

 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
 #include <bluetooth/bluetooth.h>
 #include <bluetooth/rfcomm.h>
diff -urN Python-2.6.4rc1/Modules/spwdmodule.c Python-2.6.4rc1-haiku/Modules/spwdmodule.c
--- Python-2.6.4rc1/Modules/spwdmodule.c	2009-05-14 08:59:57.000000000 +0000
+++ Python-2.6.4rc1-haiku/Modules/spwdmodule.c	2009-05-14 08:56:28.000000000 +0000
@@ -79,7 +79,9 @@
 
 	SETS(setIndex++, p->sp_namp);

+
+set -v
+python $H2PY -i '(u_long)' $HEADERS/posix/netinet/in.h
diff -urN Python-2.6.4/Modules/resource.c Python-2.6.4-haiku/Modules/resource.c
--- Python-2.6.4/Modules/resource.c	2009-05-14 08:59:56.000000000 +0000
+++ Python-2.6.4-haiku/Modules/resource.c	2009-05-14 08:56:28.000000000 +0000
@@ -86,6 +86,7 @@
 			PyFloat_FromDouble(doubletime(ru.ru_utime)));
 	PyStructSequence_SET_ITEM(result, 1,
