diff options
author | Tim Rice <tim@multitalents.net> | 2002-05-07 19:51:31 -0700 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2002-05-07 19:51:31 -0700 |
commit | 4bd2a1989073dcf353e8e4801029f9b6873158df (patch) | |
tree | c367bb516838b2284f00286f53242607c08c06e5 /openbsd-compat/bsd-misc.h | |
parent | f762a4bea554a9ff4dc59b9456c7e1a2379310b3 (diff) | |
download | openssh-git-4bd2a1989073dcf353e8e4801029f9b6873158df.tar.gz |
Add truncate() emulation to address Bug 208
Diffstat (limited to 'openbsd-compat/bsd-misc.h')
-rw-r--r-- | openbsd-compat/bsd-misc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index 2ca0f370..9475a294 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h @@ -22,7 +22,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* $Id: bsd-misc.h,v 1.3 2001/04/09 14:50:56 stevesk Exp $ */ +/* $Id: bsd-misc.h,v 1.4 2002/05/08 02:51:32 tim Exp $ */ #ifndef _BSD_MISC_H #define _BSD_MISC_H @@ -72,5 +72,8 @@ struct timeval { int utimes(char *filename, struct timeval *tvp); #endif /* HAVE_UTIMES */ +#ifndef HAVE_TRUNCATE +int truncate (const char *path, off_t length); +#endif /* HAVE_TRUNCATE */ #endif /* _BSD_MISC_H */ |