diff options
author | Marcus Alves Grando <mnag@FreeBSD.org> | 2005-11-27 20:37:20 +0000 |
---|---|---|
committer | Marcus Alves Grando <mnag@FreeBSD.org> | 2005-11-27 20:37:20 +0000 |
commit | 917dae07e5b75453877482e908568870fba10455 (patch) | |
tree | 0a08a0f413535038032e5e6cf3a7c11bdd9d2f01 /sysutils/x86info/files/patch-cpuid.c | |
parent | b2918d0d1cc7b3d92d9b6d2f9f9e7f8125f08cdd (diff) | |
download | ports-917dae07e5b75453877482e908568870fba10455.tar.gz ports-917dae07e5b75453877482e908568870fba10455.zip |
Update to 1.17
Add SHA256
PR: 89618
Submitted by: Erik Greenwald <erik@smluc.org> (maintainer)
Notes
Notes:
svn path=/head/; revision=149688
Diffstat (limited to 'sysutils/x86info/files/patch-cpuid.c')
-rw-r--r-- | sysutils/x86info/files/patch-cpuid.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/x86info/files/patch-cpuid.c b/sysutils/x86info/files/patch-cpuid.c new file mode 100644 index 000000000000..c7938b5b540b --- /dev/null +++ b/sysutils/x86info/files/patch-cpuid.c @@ -0,0 +1,11 @@ +--- cpuid.c.orig Sat Nov 26 20:51:01 2005 ++++ cpuid.c Sat Nov 26 20:51:24 2005 +@@ -40,7 +40,7 @@ + snprintf (cpuname,18, "/dev/cpu/%d/cpuid", CPU_number); + fh = open (cpuname, O_RDONLY); + if (fh != -1) { +- lseek64 (fh, (off64_t)idx, SEEK_CUR); ++ lseek (fh, (off_t)idx, SEEK_CUR); + read (fh, &buffer[0], 16); + if (eax!=0) *eax = (*(unsigned *)(buffer )); + if (ebx!=0) *ebx = (*(unsigned *)(buffer+ 4)); |