From 9f78065e213deae9b29c035ac6ea6dc767139aca Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 23 May 2010 00:11:02 +0200 Subject: [PATCH] fix prototype for _Z14isModuleLoadedPci --- usb-driver.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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; } -- 2.39.2