summaryrefslogtreecommitdiff
path: root/news/nntp/files/patch-server-xover.c
diff options
context:
space:
mode:
Diffstat (limited to 'news/nntp/files/patch-server-xover.c')
-rw-r--r--news/nntp/files/patch-server-xover.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/news/nntp/files/patch-server-xover.c b/news/nntp/files/patch-server-xover.c
new file mode 100644
index 000000000000..543dc0236c30
--- /dev/null
+++ b/news/nntp/files/patch-server-xover.c
@@ -0,0 +1,32 @@
+--- server/xover.c.orig Tue Nov 1 07:09:24 1994
++++ server/xover.c Mon Nov 4 05:50:22 2002
+@@ -213,7 +213,9 @@
+ } while (c != EOF && c != '\n' && c != '\t');
+ printf("\r\n");
+ } else {
++#ifndef __FreeBSD__
+ char *malloc(), *realloc();
++#endif
+ register int size = 1024;
+ buf = malloc(size);
+ if (buf) {
+@@ -248,7 +250,9 @@
+ register char *cp, *cp2;
+ register int hdr;
+ char *array[OVER_FIELD_COUNT];
++#ifndef __FreeBSD__
+ char *malloc(), *realloc();
++#endif
+
+ (void) sprintf(line, "%d", artnum);
+ fp = fopen(line, "r");
+@@ -359,7 +363,9 @@
+ register FILE *fp;
+ register char *cp, *cp2;
+ char *references = NULL;
++#ifndef __FreeBSD__
+ char *malloc(), *realloc();
++#endif
+
+ #ifdef XOVER
+ if (over_is_cheap(artnum, artnum)) {