summaryrefslogtreecommitdiffstats
path: root/math/gcalctool
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2010-01-25 02:39:34 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2010-01-25 02:39:34 +0800
commit420102a2e12bbbc7c8eab6dd14707a8d786f1ec0 (patch)
treef540fbd87e9c8720b69193b9a081cf17ad808e77 /math/gcalctool
parent00d662288c8d4e08372faf4053d6e12e1d758038 (diff)
downloadmarcuscom-ports-420102a2e12bbbc7c8eab6dd14707a8d786f1ec0.tar
marcuscom-ports-420102a2e12bbbc7c8eab6dd14707a8d786f1ec0.tar.gz
marcuscom-ports-420102a2e12bbbc7c8eab6dd14707a8d786f1ec0.tar.bz2
marcuscom-ports-420102a2e12bbbc7c8eab6dd14707a8d786f1ec0.tar.lz
marcuscom-ports-420102a2e12bbbc7c8eab6dd14707a8d786f1ec0.tar.xz
marcuscom-ports-420102a2e12bbbc7c8eab6dd14707a8d786f1ec0.tar.zst
marcuscom-ports-420102a2e12bbbc7c8eab6dd14707a8d786f1ec0.zip
Fix some compiler errors in the getline function.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13497 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'math/gcalctool')
-rw-r--r--math/gcalctool/files/patch-src_gcalccmd.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/math/gcalctool/files/patch-src_gcalccmd.c b/math/gcalctool/files/patch-src_gcalccmd.c
index 7a3c1a7a7..8766e797d 100644
--- a/math/gcalctool/files/patch-src_gcalccmd.c
+++ b/math/gcalctool/files/patch-src_gcalccmd.c
@@ -1,6 +1,11 @@
---- src/gcalccmd.c.orig 2010-01-13 00:30:10.000000000 -0500
-+++ src/gcalccmd.c 2010-01-13 00:39:51.000000000 -0500
-@@ -22,12 +22,84 @@
+--- src/gcalccmd.c.orig 2009-12-08 21:27:37.000000000 -0500
++++ src/gcalccmd.c 2010-01-24 13:38:19.000000000 -0500
+@@ -18,16 +18,89 @@
+ * 02111-1307, USA.
+ */
+
++#include <errno.h>
+ #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
@@ -38,7 +43,7 @@
+ if (line == NULL)
+ return (ssize_t) -1;
+ *lineptr = line;
-+ *n = MAX_CANNON;
++ *n = MAX_CANON;
+ }
+
+ line = *lineptr;