861ac185a6
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
36 lines
869 B
Diff
36 lines
869 B
Diff
--- a/src/access_io.c 2005-03-11 18:55:41.000000000 +0100
|
|
+++ b/src/access_io.c 2015-05-31 11:14:36.635234600 +0200
|
|
@@ -47,7 +47,7 @@
|
|
#include "parport.h"
|
|
#include "ppdev.h"
|
|
|
|
-#ifdef HAVE_LINUX
|
|
+#if defined(HAVE_LINUX) && defined(__GLIBC__)
|
|
|
|
#ifdef HAVE_SYS_IO_H
|
|
#include <sys/io.h>
|
|
@@ -62,7 +62,7 @@ struct iopbuf {
|
|
unsigned char port_value;
|
|
};
|
|
|
|
-#elif defined(HAVE_CYGWIN_9X)
|
|
+#elif defined(HAVE_LINUX) && !defined(__GLIBC__) || defined(HAVE_CYGWIN_9X)
|
|
|
|
#include "io.h"
|
|
|
|
--- a/include/config.h.in
|
|
+++ b/include/config.h.in
|
|
@@ -39,9 +39,13 @@
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
#undef HAVE_STRING_H
|
|
|
|
+#if defined(__x86_64__) || defined(__i386__)
|
|
+
|
|
/* Define to 1 if you have the <sys/io.h> header file. */
|
|
#undef HAVE_SYS_IO_H
|
|
|
|
+#endif
|
|
+
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
#undef HAVE_SYS_STAT_H
|
|
|