diff options
Diffstat (limited to 'main/rxmtp/fix-getline-clash.patch')
-rw-r--r-- | main/rxmtp/fix-getline-clash.patch | 22 |
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 0000000000..ba20a66367 --- /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)); |