From afcd9bf461ee813bd17c0718ef3211b5d09fc890 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Sun, 27 Nov 2011 12:47:41 +0000 Subject: - add missing prototypes - add missing includes - fix build with clang Feature safe: yes --- textproc/agrep/files/patch-bitap.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 textproc/agrep/files/patch-bitap.c (limited to 'textproc/agrep/files/patch-bitap.c') diff --git a/textproc/agrep/files/patch-bitap.c b/textproc/agrep/files/patch-bitap.c new file mode 100644 index 000000000000..f6ee4b81f618 --- /dev/null +++ b/textproc/agrep/files/patch-bitap.c @@ -0,0 +1,29 @@ +--- bitap.c.orig 1992-01-17 22:00:15.000000000 +0100 ++++ bitap.c 2011-11-27 13:33:41.000000000 +0100 +@@ -13,6 +13,8 @@ + + #include "agrep.h" + ++#include ++ + extern unsigned Init1, D_endpos, endposition, Init[], Mask[], Bit[]; + extern int DELIMITER, FILENAMEONLY, D_length, I, AND, REGEX, JUMP, INVERSE; + extern char D_pattern[]; +@@ -22,7 +24,7 @@ + + /* bitap dispatches job */ + +-bitap(old_D_pat, Pattern, fd, M, D) ++void bitap(old_D_pat, Pattern, fd, M, D) + char old_D_pat[], *Pattern; int fd, M, D; + { + char c; +@@ -143,7 +145,7 @@ + return; + } + +-fill_buf(fd, buf, record_size) ++int fill_buf(fd, buf, record_size) + int fd, record_size; unsigned char *buf; + { + int num_read=1; -- cgit v1.2.3