mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-23 11:54:33 +00:00
Patch from Oleg Vdovikin to make alpha compiles happy.
Replaced sys/perm.h with sys/io.h. But then it conflicted
with asm/io.h so I changed it to only use one or the other.
Hope it works.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1107 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
5e63047a24
commit
96a5ce9a4f
1 file changed
+3
-2
+3
-2
@@ -21,12 +21,13 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
|
||||
/* To keep glibc2 happy */
|
||||
#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 0
|
||||
#include <sys/perm.h>
|
||||
#include <sys/io.h>
|
||||
#else
|
||||
#include <asm/io.h>
|
||||
#endif
|
||||
|
||||
#ifdef __powerpc__
|
||||
|
||||
Reference in new issue
Block a user