aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hplip/types-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/hplip/types-musl.patch')
-rw-r--r--testing/hplip/types-musl.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/hplip/types-musl.patch b/testing/hplip/types-musl.patch
new file mode 100644
index 0000000000..96a43690ec
--- /dev/null
+++ b/testing/hplip/types-musl.patch
@@ -0,0 +1,20 @@
+--- a/scan/sane/OrbliteScan/LinuxCommon.h.orig 2018-10-10 22:20:30.798911195 +0200
++++ b/scan/sane/OrbliteScan/LinuxCommon.h 2018-10-10 22:21:28.815911201 +0200
+@@ -3,6 +3,17 @@
+
+ #include <sys/types.h>
+
++#ifndef __GLIBC__
++#include <bits/reg.h>
++#if __WORDSIZE == 32
++# define __S64_TYPE long long int
++# define __U64_TYPE unsigned long long int
++#elif __WORDSIZE == 64
++# define __S64_TYPE long int
++# define __U64_TYPE unsigned long int
++#endif
++#endif
++
+ /* Common typedefs for Linux */
+
+ typedef unsigned char * StringPtr;