forked from Lainports/freebsd-ports
- Fix pkg-descr (we don't support MSR reading on FreeBSD) [1] - Respect DESTDIR while here PR: ports/101722 [1] Submitted by: Stanislav Sedov <ssedov@mbsd.msk.ru> [1] Approved by: Erik Greenwald <erik@smluc.org> (maintainer)
11 lines
313 B
C
11 lines
313 B
C
--- cpuid.c.orig Wed Aug 9 22:54:05 2006
|
|
+++ cpuid.c Wed Aug 9 22:54:20 2006
|
|
@@ -42,7 +42,7 @@
|
|
fh = open(cpuname, O_RDONLY);
|
|
if (fh != -1) {
|
|
#ifndef S_SPLINT_S
|
|
- lseek64(fh, (off64_t)idx, SEEK_CUR);
|
|
+ lseek(fh, (off_t)idx, SEEK_CUR);
|
|
#endif
|
|
if (read(fh, &buffer[0], 16) == -1) {
|
|
perror(cpuname);
|