summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Wilhelmy <moritz+crux@wzff.de>2010-12-19 22:49:55 +0100
committerMoritz Wilhelmy <moritz+crux@wzff.de>2010-12-19 22:49:55 +0100
commitedd2f04fffba3566a32a14c40bcf13fc4800f956 (patch)
treee7e5302051be0cc2783702e228bad6b036e57f07
parent81bd6999cc5a58c2d480171bc2fb82ff09cc3209 (diff)
downloadcontrib-edd2f04fffba3566a32a14c40bcf13fc4800f956.tar.gz
contrib-edd2f04fffba3566a32a14c40bcf13fc4800f956.tar.xz
cvs: fix compilation on x86_64
Thanks deus_ex, frinnst
-rw-r--r--cvs/getline-x86_64.diff36
1 files changed, 36 insertions, 0 deletions
diff --git a/cvs/getline-x86_64.diff b/cvs/getline-x86_64.diff
new file mode 100644
index 000000000..a724eb1ab
--- /dev/null
+++ b/cvs/getline-x86_64.diff
@@ -0,0 +1,36 @@
+This is required on x86_64 but does no harm on i686
+Source: http://repos.archlinux.org/wsvn/packages/cvs/repos/extra-x86_64/cvs-1.11.23-getline64.patch
+--- cvs-1.11.23/lib/getline.c 2005-04-04 22:46:05.000000000 +0200
++++ cvs-1.11.23/lib/getline.c.old 2008-06-03 19:06:25.000000000 +0200
+@@ -154,7 +154,7 @@
+ return ret;
+ }
+
+-int
++ssize_t
+ getline (lineptr, n, stream)
+ char **lineptr;
+ size_t *n;
+@@ -163,7 +163,7 @@
+ return getstr (lineptr, n, stream, '\n', 0, GETLINE_NO_LIMIT);
+ }
+
+-int
++ssize_t
+ getline_safe (lineptr, n, stream, limit)
+ char **lineptr;
+ size_t *n;
+--- cvs-1.11.23/lib/getline.h 2005-04-04 22:46:05.000000000 +0200
++++ cvs-1.11.23/lib/getline.h.old 2008-06-03 19:06:27.000000000 +0200
+@@ -11,9 +11,9 @@
+
+ #define GETLINE_NO_LIMIT -1
+
+-int
++ssize_t
+ getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream));
+-int
++ssize_t
+ getline_safe __PROTO ((char **_lineptr, size_t *_n, FILE *_stream,
+ int limit));
+ int

Generated by cgit