Skip to content

Commit d6d95d3

Browse files
authored
Merge pull request #1887 from peppergrayxyz/have_error
configure.ac: check if error function is available
2 parents c9615b2 + 1188a67 commit d6d95d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ AC_PATH_PROG(MD2MAN, go-md2man)
2626

2727
AM_CONDITIONAL([HAVE_MD2MAN], [test "x$ac_cv_path_MD2MAN" != x])
2828

29-
AC_CHECK_HEADERS([error.h linux/openat2.h stdatomic.h linux/ioprio.h])
29+
AC_CHECK_HEADERS([linux/openat2.h stdatomic.h linux/ioprio.h])
3030

3131
AC_CHECK_TYPES([atomic_int], [], [], [[#include <stdatomic.h>]])
3232

3333
AC_CHECK_FUNCS(eaccess hsearch_r copy_file_range fgetxattr statx fgetpwent_r issetugid memfd_create)
3434

35+
AC_CHECK_HEADER([error.h], [AC_CHECK_FUNC([error], AC_DEFINE([HAVE_ERROR_H], [1], [Define if error.h is usable]))])
36+
3537
case "${lt_cv_prog_compiler_static_works}" in
3638
yes) build_tests=true ;;
3739
no)

0 commit comments

Comments
 (0)