wmlongrun: Update for modern kernels, *really* release version 0.3.1.

Patch by Robert Jacobs <debbtsa81@eamp.org>.

From
https://bugs.debian.org/306536
This commit is contained in:
Doug Torrance 2016-12-23 18:47:25 -05:00 committed by Carlos R. Mafra
parent b6d62e5254
commit 153a87506d
2 changed files with 4 additions and 2 deletions

View file

@ -8,6 +8,7 @@
* Replace INCLUDES and CPPFLAGS with AM_CPPFLAGS to fix warnings.
* Detect GNU/kFreeBSD during build.
* Update README with new contact info and url.
* Update for modern kernels.
2002 March 23
* version 0.2.0 released

View file

@ -22,6 +22,7 @@
#ifdef USE_PREAD
#define __USE_UNIX98 /* for pread/pwrite */
#endif
#define __USE_FILE_OFFSET64 /* msr/cpuid needs 64bit address with newer linuxes */
#include <unistd.h>
#include "common.h"
@ -45,7 +46,7 @@ static int msr_fd; /* MSR file descriptor */
static char *msr_device; /* MSR device name */
static void
read_cpuid(long address, int *eax, int *ebx, int *ecx, int *edx)
read_cpuid(loff_t address, int *eax, int *ebx, int *ecx, int *edx)
{
uint32_t data[4];
@ -75,7 +76,7 @@ read_cpuid(long address, int *eax, int *ebx, int *ecx, int *edx)
/* note: if an output is NULL, then don't set it */
static void
read_msr(long address, int *lower, int *upper)
read_msr(loff_t address, int *lower, int *upper)
{
uint32_t data[2];