From: Michael Gernoth Date: Sat, 22 May 2010 22:11:02 +0000 (+0200) Subject: fix prototype for _Z14isModuleLoadedPci X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver/commitdiff_plain/9f78065e213deae9b29c035ac6ea6dc767139aca?ds=inline fix prototype for _Z14isModuleLoadedPci --- diff --git a/usb-driver.c b/usb-driver.c index 504a278..6a7df90 100644 --- a/usb-driver.c +++ b/usb-driver.c @@ -673,10 +673,13 @@ int uname (struct utsname *__name) { } #endif -/* Ugly hack for ISE 12. They don't seem to open /proc/modules with - * open() anymore... */ -int _Z14isModuleLoadedPci(void) { - DPRINTF("Faking _Z14isModuleLoadedPci\n"); +/* + * Ugly hack for ISE 12. They don't seem to open /proc/modules with + * open() anymore... + * echo '_Z14isModuleLoadedPci' | c++filt + */ +int _Z14isModuleLoadedPci(char *module_name, int i) { + DPRINTF("_Z14isModuleLoadedPci: Checking for module %s (%d)\n", module_name, i); return 1; }