  #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);

+def _FDMSKNO(fd): return ((fd) / NFDBITS)
+
+def _FDBITNO(fd): return ((fd) % NFDBITS)
diff -urN Python-2.6.5/Lib/plat-haiku1/regen Python-2.6.5-haiku/Lib/plat-haiku1/regen
--- Python-2.6.5/Lib/plat-haiku1/regen	1970-01-01 00:00:00.000000000 +0000
+++ Python-2.6.5-haiku/Lib/plat-haiku1/regen	2010-03-11 16:54:31.759693312 +0000
@@ -0,0 +1,7 @@
+#! /bin/sh
+

 
 	if (PyErr_Occurred()) {
 		Py_DECREF(result);
diff -up Python-2.6.5/Modules/socketmodule.c.orig Python-2.6.5/Modules/socketmodule.c
--- Python-2.6.5/Modules/socketmodule.c.orig	2010-02-04 13:26:34.065011712 -0700
+++ Python-2.6.5/Modules/socketmodule.c	2010-04-26 15:46:55.934805504 -0600
@@ -4647,7 +4647,9 @@ init_socket(void)
 #ifndef __BEOS__
 /* We have incomplete socket support. */
 	PyModule_AddIntConstant(m, "SOCK_RAW", SOCK_RAW);
