openbsd-ports/multimedia/gstreamer-0.10/py-gstreamer/patches/patch-gst___init___py_in
2010-12-13 06:37:06 +00:00

22 lines
940 B
Plaintext

$OpenBSD: patch-gst___init___py_in,v 1.1 2010/12/13 06:37:06 ajacoutot Exp $
--- gst/__init__.py.in.orig Mon Dec 13 07:30:03 2010
+++ gst/__init__.py.in Mon Dec 13 07:30:41 2010
@@ -156,7 +156,7 @@ class Fraction(Value):
try:
dlsave = sys.getdlopenflags()
- from DLFCN import RTLD_GLOBAL, RTLD_LAZY
+ from dl import RTLD_GLOBAL, RTLD_LAZY
except AttributeError:
# windows doesn't have sys.getdlopenflags()
RTLD_GLOBAL = -1
@@ -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' or osname == 'GNU':
+ if osname == 'Linux' or osname == 'SunOS' or osname == 'FreeBSD' or osname == 'GNU/kFreeBSD' or osname == 'GNU' or osname == 'OpenBSD':
machinename = os.uname()[4]
if machinename == 'mips' or machinename == 'mips64':
RTLD_GLOBAL = 0x4