freebsd-ports/sysutils/x86info/files/patch-cpuid.c
Shaun Amott 9f1cc627fb - Update to 1.18 [1]
- 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)
2006-08-15 14:38:06 +00:00

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);