From 1ebf647b05a7314cfc0279810f802dd1dfa332c1 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Mon, 21 Jan 2013 19:07:16 -0500 Subject: Fall back on POSIX mkstemp() for systems lacking mkostemp() We add an autotools check to use mkstemp() and fcntl() when mkostemp() is missing. This is not strictly equivalent because we have no way of setting the file access mode O_WRONLY flag, but that should produce no functional difference. Signed-off-by: Richard Yao Signed-off-by: Anthony G. Basile --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 500bf12e50..e559300191 100644 --- a/configure.ac +++ b/configure.ac @@ -59,7 +59,7 @@ AC_C_INLINE AC_TYPE_MODE_T AC_TYPE_PID_T AC_CHECK_MEMBERS([struct stat.st_rdev]) -AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, accept4], [], [], [[#include +AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, accept4, mkostemp], [], [], [[#include #include #include #include -- cgit v1.2.3-54-g00ecf