From b4fd0ca9be14c81023db759c405c0f67cfa78166 Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Sat, 9 Mar 2019 12:37:09 -0500 Subject: Include cstring for sanity_test_fdelt if required SmartOS FD_ZERO is implemented in a way that requires an external declaration of memcpy. We can not simply include cstring in the existing file because sanity_test_memcpy is attempting to replace memcpy, but we can do so here, now that the fdelt test is split out. --- src/compat/glibc_sanity_fdelt.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/compat') diff --git a/src/compat/glibc_sanity_fdelt.cpp b/src/compat/glibc_sanity_fdelt.cpp index 13661d3eef..87140d0c71 100644 --- a/src/compat/glibc_sanity_fdelt.cpp +++ b/src/compat/glibc_sanity_fdelt.cpp @@ -7,6 +7,9 @@ #endif #if defined(HAVE_SYS_SELECT_H) +#ifdef HAVE_CSTRING_DEPENDENT_FD_ZERO +#include +#endif #include // trigger: Call FD_SET to trigger __fdelt_chk. FORTIFY_SOURCE must be defined -- cgit v1.2.3