Index: Lib/distutils/util.py =================================================================== --- Lib/distutils/util.py (revision 62931) +++ Lib/distutils/util.py (working copy) @@ -116,6 +116,8 @@ def get_platform (): elif machine in ('PowerPC', 'Power_Macintosh'): # Pick a sane name for the PPC architecture machine = 'ppc' + elif osname[:9] == "dragonfly": + release = string.split(release, "-")[0] return "%s-%s-%s" % (osname, release, machine) Index: Modules/socketmodule.c =================================================================== --- Modules/socketmodule.c (revision 62931) +++ Modules/socketmodule.c (working copy) @@ -355,7 +355,8 @@ const char *inet_ntop(int af, const void #define SEGMENT_SIZE 65535 #endif -#if defined(HAVE_BLUETOOTH_H) || defined(HAVE_BLUETOOTH_BLUETOOTH_H) +#if (defined(HAVE_BLUETOOTH_H) || defined(HAVE_BLUETOOTH_BLUETOOTH_H)) && \ + !defined(__NetBSD__) && !defined(__DragonFly__) #define USE_BLUETOOTH 1 #if defined(__FreeBSD__) #define BTPROTO_L2CAP BLUETOOTH_PROTO_L2CAP