summaryrefslogtreecommitdiff
path: root/community/ckermit
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-06-17 14:34:39 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2019-06-17 14:34:39 +0200
commit223c39b8f6b1ad5c5a1fc720971dcadca6632534 (patch)
tree28a6bf9c0a20fef8eb7fb90d7164ed60c9c742b3 /community/ckermit
parentb024d53bee7bb157f3f4fba5a0757fb90ee2eb15 (diff)
downloadpackages-223c39b8f6b1ad5c5a1fc720971dcadca6632534.tar.xz
community/ckermit: patch for _IO_file_flags
Diffstat (limited to 'community/ckermit')
-rw-r--r--community/ckermit/PKGBUILD9
-rw-r--r--community/ckermit/ckucmd-IO_file_flags.patch11
2 files changed, 20 insertions, 0 deletions
diff --git a/community/ckermit/PKGBUILD b/community/ckermit/PKGBUILD
new file mode 100644
index 00000000..5f4acf8d
--- /dev/null
+++ b/community/ckermit/PKGBUILD
@@ -0,0 +1,9 @@
+source+=('ckucmd-IO_file_flags.patch')
+sha512sums+=('0a49ac384b7a49efe20cf4842a0f1ebe3f504aa259f9a9c956ad5b85fd49964a44191a99b8111a7868a9e9be37d6093f3db3bbe907d20605e2664b64395e5f17')
+eval "$(
+ declare -f prepare | \
+ sed '
+ /patch/ a patch -p1 < ckucmd-IO_file_flags.patch
+ '
+)"
+
diff --git a/community/ckermit/ckucmd-IO_file_flags.patch b/community/ckermit/ckucmd-IO_file_flags.patch
new file mode 100644
index 00000000..87886f17
--- /dev/null
+++ b/community/ckermit/ckucmd-IO_file_flags.patch
@@ -0,0 +1,11 @@
+diff -rauN cku302/ckucmd.c cku302-ckucmd-IO_file_flags-patch/ckucmd.c
+--- cku302/ckucmd.c 2011-07-14 14:14:37.000000000 +0200
++++ cku302-ckucmd-IO_file_flags-patch/ckucmd.c 2019-06-17 14:19:01.124728510 +0200
+@@ -7370,6 +7370,7 @@
+
+ /* Here we must look inside the stdin buffer - highly platform dependent */
+
++#define _IO_file_flags
+ #ifdef _IO_file_flags /* Linux */
+ x = (int) ((stdin->_IO_read_end) - (stdin->_IO_read_ptr));
+ debug(F101,"cmdconchk _IO_file_flags","",x);