summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-09-28 14:46:45 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-09-28 16:43:18 -0400
commit53e9cc2a47d42da13d71f5f6e40431d705ca95f5 (patch)
tree82142d4d6fde04982aff9653e9977e5f0c7657b8 /sci-calculators/hcalc/files
parentdev-python/sphinx-autoapi: Bump to 2.0.0 (diff)
downloadgentoo-53e9cc2a47d42da13d71f5f6e40431d705ca95f5.tar.gz
gentoo-53e9cc2a47d42da13d71f5f6e40431d705ca95f5.tar.bz2
gentoo-53e9cc2a47d42da13d71f5f6e40431d705ca95f5.zip
sci-calculators/hcalc: fix build with clang16
Closes: https://bugs.gentoo.org/870514 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'sci-calculators/hcalc/files')
-rw-r--r--sci-calculators/hcalc/files/hcalc-1.2-clang16.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/sci-calculators/hcalc/files/hcalc-1.2-clang16.patch b/sci-calculators/hcalc/files/hcalc-1.2-clang16.patch
new file mode 100644
index 000000000000..19b08726b18e
--- /dev/null
+++ b/sci-calculators/hcalc/files/hcalc-1.2-clang16.patch
@@ -0,0 +1,26 @@
+https://bugs.gentoo.org/870514
+--- a/draw.c
++++ b/draw.c
+@@ -63,2 +63,3 @@
+
++void
+ set_bits(int b)
+@@ -70,2 +71,3 @@
+
++void
+ set_string(char *s)
+--- a/hcalc.h
++++ b/hcalc.h
+@@ -37 +37,12 @@
+ #define HEIGHT 294
++
++void button(int b, int x, int y);
++void complete_paste(char *s, int n);
++void key(char c);
++void load_pixmaps(void);
++void process_input(void);
++void redraw(void);
++void send_current_display(void);
++void set_bits(int b);
++void set_string(char *s);
++void setup_x(int argc, char **argv);