From 14fe44683255c06abe7fd1f59fc10c338307e487 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 25 Oct 2019 19:54:20 -0700 Subject: configure: memalign fixes. This fixes build problems on Mac OS and Solaris due to the introduction of the use of memalign. * configure: After detecting that __EXTENSIONS__ is required on Solaris and adding that to lang_flags, we must call gen_config_make so that it becomes available to subsequent configure tests. On Solaris, memalign is just in , so let's test for that first, then test for a memalign in , and in that case add HAVE_MALLOC_H into config.h. Also, fixing two bugs here. Firstly, the memalign test used inverted logic, causing HAVE_MEMALIGN to be defined on platforms that don't have it. Secondly, the dummy while loop that is just supposed to be a control structure for forward breaks turned infinite due to a missing break at the bottom. * lib.c: if HAVE_MALLOC_H is defined and nonzero, then include . --- lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib.c') diff --git a/lib.c b/lib.c index be0622cb..304bee3a 100644 --- a/lib.c +++ b/lib.c @@ -45,7 +45,7 @@ #define NOMINMAX #include #endif -#if HAVE_MEMALIGN +#if HAVE_MALLOC_H #include #endif #include "lib.h" -- cgit v1.2.3