2009-11-29 04:18:42 -05:00
|
|
|
$OpenBSD: patch-gst___init___py,v 1.2 2009/11/29 09:18:42 ajacoutot Exp $
|
|
|
|
--- gst/__init__.py.orig Tue Nov 24 10:57:32 2009
|
|
|
|
+++ gst/__init__.py Tue Nov 24 10:58:07 2009
|
|
|
|
@@ -156,7 +156,7 @@ class Fraction(Value):
|
|
|
|
|
2008-01-22 03:53:41 -05:00
|
|
|
try:
|
2009-11-29 04:18:42 -05:00
|
|
|
dlsave = sys.getdlopenflags()
|
2008-01-22 03:53:41 -05:00
|
|
|
- from DLFCN import RTLD_GLOBAL, RTLD_LAZY
|
|
|
|
+ from dl import RTLD_GLOBAL, RTLD_LAZY
|
2009-11-29 04:18:42 -05:00
|
|
|
except AttributeError:
|
|
|
|
# windows doesn't have sys.getdlopenflags()
|
2008-01-22 03:53:41 -05:00
|
|
|
RTLD_GLOBAL = -1
|
2009-11-29 04:18:42 -05:00
|
|
|
@@ -166,7 +166,7 @@ except ImportError:
|
2008-01-22 03:53:41 -05:00
|
|
|
RTLD_LAZY = -1
|
|
|
|
import os
|
|
|
|
osname = os.uname()[0]
|
|
|
|
- if osname == 'Linux' or osname == 'SunOS' or osname == 'FreeBSD':
|
|
|
|
+ if osname == 'Linux' or osname == 'SunOS' or osname == 'FreeBSD' or osname == 'OpenBSD':
|
2009-11-29 04:18:42 -05:00
|
|
|
machinename = os.uname()[4]
|
|
|
|
if machinename == 'mips' or machinename == 'mips64':
|
|
|
|
RTLD_GLOBAL = 0x4
|