diff --git a/configure.ac b/configure.ac
index ccc01a9d9ff85b675a34286ac9d4f9e8fbad6002..dcfae4d50c7ce4b04a057a2a489851812145ac92 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1181,6 +1181,7 @@ AC_CHECK_HEADERS(
         sys/resource.h \
         libgen.h \
         locale.h \
+        errno.h \
         setjmp.h,
 dnl to do if not found
 [],