-#if __WORDSIZE == 32
-int uname (struct utsname *__name) {
- static int (*func) (struct utsname*);
- int ret;
-
- if (!func)
- func = (int (*) (struct utsname*)) dlsym(RTLD_NEXT, "uname");
-
- ret = (*func)(__name);
+/*
+ * Ugly hack for ISE 12. They don't seem to open /proc/modules with
+ * open() anymore...
+ * echo '_Z14isModuleLoadedPci' | c++filt
+ */
+long int _Z14isModuleLoadedPci(char *module_name, int i) {
+ DPRINTF("_Z14isModuleLoadedPci: Checking for module %s (%d)\n", module_name, i);