diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-12-04 08:21:01 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-12-04 08:21:01 +0000 |
commit | 7a76328f6d3976de0004f7f97e8f0f3c397007c9 (patch) | |
tree | 981c984a28e382488ddc28e2ef396735f22ec801 | |
parent | a7cbb4e79e9d330249d005eace1787b8247e8af2 (diff) |
Add support for BSD/OS
-rw-r--r-- | usr.bin/sup/src/ffilecopy.c | 6 |
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 */ |