summaryrefslogtreecommitdiffstats
path: root/main/rxmtp/fix-getline-clash.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-01-13 19:07:44 +0000
committerTimo Teräs <timo.teras@iki.fi>2014-01-13 19:07:44 +0000
commit39abdabd4f1d4296534cb27d2cf4aeda937122f3 (patch)
tree6cc5152d3804830175708c198857b9dc518fdba0 /main/rxmtp/fix-getline-clash.patch
parent5f2f422fbe64f0cd09d6c441e587bae2ab6edda2 (diff)
downloadaports-39abdabd4f1d4296534cb27d2cf4aeda937122f3.tar.bz2
aports-39abdabd4f1d4296534cb27d2cf4aeda937122f3.tar.xz
main/rxmtp: fix musl build
Diffstat (limited to 'main/rxmtp/fix-getline-clash.patch')
-rw-r--r--main/rxmtp/fix-getline-clash.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/rxmtp/fix-getline-clash.patch b/main/rxmtp/fix-getline-clash.patch
new file mode 100644
index 000000000..ba20a6636
--- /dev/null
+++ b/main/rxmtp/fix-getline-clash.patch
@@ -0,0 +1,22 @@
+getline() is reserved symbol in libc. rename the app symbol.
+
+--- rxmtp-1.1.3.orig/smtp.c
++++ rxmtp-1.1.3/smtp.c
+@@ -54,7 +54,7 @@
+ return (0);
+ }
+
+-char *getline(char *line, int size, FILE *fp, int debug)
++char *mygetline(char *line, int size, FILE *fp, int debug)
+ {
+ *line = 0;
+ if (fgets(line, size, fp) == NULL) {
+@@ -71,7 +71,7 @@
+
+ int getresp(char *line, int size, FILE *fp, int debug)
+ {
+- if (getline(line, size, fp, debug) == NULL)
++ if (mygetline(line, size, fp, debug) == NULL)
+ return (-1);
+
+ return (atoi(line));