diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-12-18 09:57:40 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-12-18 09:57:40 +0000 |
commit | 5e2f9aa50a1bac4353f5fd1a2d5c3251fbba60a3 (patch) | |
tree | bd050a8a758b44f1f504f0c22a4968ab8d46fe3f /main/lm_sensors/musl-fix-includes.patch | |
parent | ec56c6104f84980b4387dd935c47ca94cdd468c8 (diff) | |
download | aports-5e2f9aa50a1bac4353f5fd1a2d5c3251fbba60a3.tar.bz2 aports-5e2f9aa50a1bac4353f5fd1a2d5c3251fbba60a3.tar.xz |
main/lm_sensors: fix musl build
Diffstat (limited to 'main/lm_sensors/musl-fix-includes.patch')
-rw-r--r-- | main/lm_sensors/musl-fix-includes.patch | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/main/lm_sensors/musl-fix-includes.patch b/main/lm_sensors/musl-fix-includes.patch new file mode 100644 index 0000000000..501f2dd762 --- /dev/null +++ b/main/lm_sensors/musl-fix-includes.patch @@ -0,0 +1,62 @@ +--- lm_sensors-3.3.4.orig/prog/dump/isadump.c ++++ lm_sensors-3.3.4/prog/dump/isadump.c +@@ -36,13 +36,7 @@ + #include "util.h" + #include "superio.h" + +- +-/* To keep glibc2 happy */ +-#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 0 + #include <sys/io.h> +-#else +-#include <asm/io.h> +-#endif + + #ifdef __powerpc__ + unsigned long isa_io_base = 0; /* XXX for now */ +--- lm_sensors-3.3.4.orig/prog/dump/isaset.c ++++ lm_sensors-3.3.4/prog/dump/isaset.c +@@ -32,13 +32,7 @@ + #include <string.h> + #include "util.h" + +- +-/* To keep glibc2 happy */ +-#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 0 + #include <sys/io.h> +-#else +-#include <asm/io.h> +-#endif + + #ifdef __powerpc__ + unsigned long isa_io_base = 0; /* XXX for now */ +--- lm_sensors-3.3.4.orig/prog/dump/superio.c ++++ lm_sensors-3.3.4/prog/dump/superio.c +@@ -20,12 +20,7 @@ + */ + + #include <stdlib.h> +- +-#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 0 + #include <sys/io.h> +-#else +-#include <asm/io.h> +-#endif + + #include "superio.h" + +--- lm_sensors-3.3.4.orig/prog/dump/util.c ++++ lm_sensors-3.3.4/prog/dump/util.c +@@ -11,12 +11,7 @@ + #include <stdio.h> + #include "util.h" + +-/* To keep glibc2 happy */ +-#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 0 + #include <sys/io.h> +-#else +-#include <asm/io.h> +-#endif + + /* Return 1 if we should continue, 0 if we should abort */ + int user_ack(int def) |