summaryrefslogtreecommitdiff
path: root/dev-embedded/sdcc/files/sdcc-2.9.0-getline.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded/sdcc/files/sdcc-2.9.0-getline.patch')
-rw-r--r--dev-embedded/sdcc/files/sdcc-2.9.0-getline.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-embedded/sdcc/files/sdcc-2.9.0-getline.patch b/dev-embedded/sdcc/files/sdcc-2.9.0-getline.patch
new file mode 100644
index 000000000000..f7ca6237cf57
--- /dev/null
+++ b/dev-embedded/sdcc/files/sdcc-2.9.0-getline.patch
@@ -0,0 +1,16 @@
+upstream has reworked their code, so just do a minimal hack for the older ver
+
+http://bugs.gentoo.org/270621
+
+--- sdcc/as/link/getline.h
++++ sdcc/as/link/getline.h
+@@ -30,6 +30,9 @@
+
+ #include <stdio.h>
+
++#undef getline /* just in case */
++#define getline sdcc_getline
++
+ #ifdef __cplusplus
+ extern "C"
+ {