Index: Modules/socketmodule.c =================================================================== --- Modules/socketmodule.c (revision 67824) +++ Modules/socketmodule.c (working copy) @@ -1053,6 +1053,12 @@ } #endif + default: + PyErr_SetString( + PyExc_TypeError, + "makesockaddr: unknown Bluetooth protocol"); + return NULL; + } #endif