Fix import on GNU/Hurd

This commit is contained in:
Emilio Pozuelo Monfort 2010-03-15 10:26:25 +01:00 committed by Sebastian Dröge
parent e6db25a448
commit df44e7b426

View file

@ -166,7 +166,7 @@ except ImportError:
RTLD_LAZY = -1
import os
osname = os.uname()[0]
if osname == 'Linux' or osname == 'SunOS' or osname == 'FreeBSD' or osname == 'GNU/kFreeBSD':
if osname == 'Linux' or osname == 'SunOS' or osname == 'FreeBSD' or osname == 'GNU/kFreeBSD' or osname == 'GNU':
machinename = os.uname()[4]
if machinename == 'mips' or machinename == 'mips64':
RTLD_GLOBAL = 0x4