summaryrefslogtreecommitdiff
path: root/news/nntp/files/patch-xmit-remote.c
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2002-11-04 05:00:14 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2002-11-04 05:00:14 +0000
commit3ff37e385bb15e608586b24278ba3dde9ea57151 (patch)
tree0b09981cfb671da75e612993d4ac3a3ef4a2551b /news/nntp/files/patch-xmit-remote.c
parent- Fix perl/reinplace problems (diff)
- reorder patches
- use DIRENT - honor CFLAGS - fix missing includes
Notes
Notes: svn path=/head/; revision=69435
Diffstat (limited to 'news/nntp/files/patch-xmit-remote.c')
-rw-r--r--news/nntp/files/patch-xmit-remote.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/news/nntp/files/patch-xmit-remote.c b/news/nntp/files/patch-xmit-remote.c
new file mode 100644
index 000000000000..a3f72ffd5722
--- /dev/null
+++ b/news/nntp/files/patch-xmit-remote.c
@@ -0,0 +1,25 @@
+--- xmit/remote.c.orig Tue Jan 9 08:28:03 1996
++++ xmit/remote.c Mon Nov 4 05:59:42 2002
+@@ -71,7 +71,13 @@
+ char *sfgets();
+ char *rfgets();
+
++#ifdef __FreeBSD__
++#include <stdlib.h>
++#include <unistd.h>
++#include <string.h>
++#else
+ extern int errno;
++#endif
+ extern char Debug;
+ extern char *errmsg();
+ extern char *strcpy();
+@@ -403,7 +409,7 @@
+ ** with appropriate RFC822 filtering (e.g. CRLF line termination,
+ ** and dot escaping). Return FALSE if something went wrong.
+ */
+-sendfile(fp)
++my_sendfile(fp)
+ FILE *fp;
+ {
+ register int c;