summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-12-04 08:21:01 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-12-04 08:21:01 +0000
commit7a76328f6d3976de0004f7f97e8f0f3c397007c9 (patch)
tree981c984a28e382488ddc28e2ef396735f22ec801
parenta7cbb4e79e9d330249d005eace1787b8247e8af2 (diff)
Add support for BSD/OS
-rw-r--r--usr.bin/sup/src/ffilecopy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/sup/src/ffilecopy.c b/usr.bin/sup/src/ffilecopy.c
index 218f2c19b37..1546b3da204 100644
--- a/usr.bin/sup/src/ffilecopy.c
+++ b/usr.bin/sup/src/ffilecopy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffilecopy.c,v 1.3 1996/08/22 00:34:49 deraadt Exp $ */
+/* $OpenBSD: ffilecopy.c,v 1.4 1996/12/04 08:21:00 niklas Exp $ */
/*
* Copyright (c) 1991 Carnegie Mellon University
@@ -60,7 +60,7 @@ FILE *here, *there;
if (fflush (there) == EOF) /* flush pending output */
return (EOF);
-#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
if ((here->_r) > 0) { /* flush buffered input */
i = write (therefile, here->_p, here->_r);
if (i != here->_r) return (EOF);
@@ -78,7 +78,7 @@ FILE *here, *there;
i = filecopy (herefile, therefile); /* fast file copy */
if (i < 0) return (EOF);
-#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
(here->_flags) |= __SEOF; /* indicate EOF */
#else
(here->_flag) |= _IOEOF; /* indicate EOF */