Index: Lib/distutils/util.py =================================================================== --- Lib/distutils/util.py (revision 62932) +++ Lib/distutils/util.py (working copy) @@ -135,6 +135,9 @@ def get_platform (): # 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) # get_platform () Index: Modules/mmapmodule.c =================================================================== --- Modules/mmapmodule.c (revision 62932) +++ Modules/mmapmodule.c (working copy) @@ -60,6 +60,7 @@ my_getpagesize(void) #define my_getallocationgranularity my_getpagesize #else #define my_getpagesize getpagesize +#define my_getallocationgranularity my_getpagesize #endif #endif /* UNIX */ Index: Modules/socketmodule.c =================================================================== --- Modules/socketmodule.c (revision 62932) +++ Modules/socketmodule.c (working copy) @@ -379,7 +379,8 @@ const char *inet_ntop(int af, const void #define SOCKETCLOSE close #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