[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819
Michael 'Mickey' Lauer
mickey at vanille-media.de
Sat Aug 6 08:18:04 UTC 2011
The following commit has been merged in the debian branch:
commit 8402f6c2d758a1eaef7844a690b907f54037f38c
Author: Mirko Vogt <spam at nanl.de>
Date: Tue Aug 25 22:54:08 2009 +0200
patterns: chose the first libc you find, this makes is works with uclibc.
Fixes FSO #338
diff --git a/framework/subsystems/odeviced/pyglet/linux.py b/framework/subsystems/odeviced/pyglet/linux.py
index 882ac65..e8d1b3d 100644
--- a/framework/subsystems/odeviced/pyglet/linux.py
+++ b/framework/subsystems/odeviced/pyglet/linux.py
@@ -15,7 +15,13 @@ import os
import struct
import sys
-c = ctypes.cdll.LoadLibrary('libc.so.6')
+from re import compile
+re = compile('^libc.so.[0-9]$')
+libs = os.listdir('/lib')
+for lib in libs:
+ if re.match(lib):
+ c = ctypes.cdll.LoadLibrary(lib)
+ break
_IOC_NRBITS = 8
_IOC_TYPEBITS = 8
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list