diff --git a/ksym_mod.c b/ksym_mod.c index 4cb4be9..4d0883a 100644 --- a/ksym_mod.c +++ b/ksym_mod.c @@ -59,6 +59,10 @@ * Sun Jan 25 20:57:34 CET 1998: Martin Schulze * Another patch for Linux/alpha by Christopher C Chimelis * . + * + * Thu Mar 19 23:39:29 CET 1998: Manuel Rodrigues + * Changed lseek() to llseek() in order to support > 2GB address + * space which provided by kernels > 2.1.70. */ @@ -386,7 +390,7 @@ static int AddModule(address, symbol) Syslog(LOG_WARNING, "Error opening /dev/kmem\n"); return(1); } - if ( lseek(memfd, address, SEEK_SET) < 0 ) + if ( llseek(memfd, address, SEEK_SET) < 0 ) { Syslog(LOG_WARNING, "Error seeking in /dev/kmem\n"); return(0);