[Pkg-wmaker-commits] [wmlongrun] 11/11: wmlongrun: Update for modern kernels, *really* release version 0.3.1.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Dec 24 14:11:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch upstream
in repository wmlongrun.

commit 2f1b0eec208232940e16784edd6f066a5dadee2a
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Fri Dec 23 18:47:25 2016 -0500

    wmlongrun: Update for modern kernels, *really* release version 0.3.1.
    
    Patch by Robert Jacobs <debbtsa81 at eamp.org>.
    
    From
    https://bugs.debian.org/306536
---
 ChangeLog           | 1 +
 src/longrun_linux.c | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index eda37c6..a06fa39 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/src/longrun_linux.c b/src/longrun_linux.c
index 4b66e19..89227eb 100644
--- a/src/longrun_linux.c
+++ b/src/longrun_linux.c
@@ -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];
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmlongrun.git



More information about the Pkg-wmaker-commits mailing list