diff options
author | Darren Tucker <dtucker@dtucker.net> | 2022-03-09 09:29:30 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2022-03-09 09:29:30 +1100 |
commit | c41c84b439f4cd74d4fe44298a4b4037ddd7d2ae (patch) | |
tree | 9c2d087470bcb5b5c9694de37a1cc969270da781 /openbsd-compat | |
parent | 8cf5275452a950869cb90eeac7d220b01f77b12e (diff) | |
download | openssh-git-c41c84b439f4cd74d4fe44298a4b4037ddd7d2ae.tar.gz |
Check for missing ftruncate prototype.
From github PR#301 in conjunction with rsbeckerca.
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index c202e142..0cecfb62 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h @@ -65,6 +65,10 @@ int bindresvport_sa(int sd, struct sockaddr *sa); void closefrom(int); #endif +#if defined(HAVE_DECL_FTRUNCATE) && HAVE_DECL_FTRUNCATE == 0 +int ftruncate(int filedes, off_t length); +#endif + #ifndef HAVE_GETLINE #include <stdio.h> ssize_t getline(char **, size_t *, FILE *); |