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 /configure.ac | |
parent | 8cf5275452a950869cb90eeac7d220b01f77b12e (diff) |
Check for missing ftruncate prototype.
From github PR#301 in conjunction with rsbeckerca.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a165d087..41761c5b 100644 --- a/configure.ac +++ b/configure.ac @@ -2092,6 +2092,12 @@ AC_CHECK_DECLS([O_NONBLOCK], , , #endif ]) +AC_CHECK_DECLS([ftruncate], , , + [ +#include <sys/types.h> +#include <unistd.h> + ]) + AC_CHECK_DECLS([readv, writev], , , [ #include <sys/types.h> #include <sys/uio.h> |