Revert aligned_alloc() addition from MDEV-28836
f02ca429f70c16be2b2e3d5671d9990cd3d474b6

Index: include/aligned.h
--- include/aligned.h.orig
+++ include/aligned.h
@@ -14,8 +14,7 @@
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1335  USA */
 
-#ifdef HAVE_ALIGNED_ALLOC
-#elif defined __linux__
+#if defined __linux__
 # include <malloc.h>
 #endif
 
@@ -23,8 +22,6 @@ inline void *aligned_malloc(size_t size, size_t alignm
 {
 #ifdef _WIN32
   return _aligned_malloc(size, alignment);
-#elif defined HAVE_ALIGNED_ALLOC
-  return aligned_alloc(alignment, size);
 #elif defined __linux__
   return memalign(alignment, size);
 #else
