[mlir] Avoid including <alloca.h> on DragonFly
authorBrad Smith <brad@comstyle.com>
Sat, 21 Oct 2023 05:18:36 +0000 (01:18 -0400)
committerTobias Hieta <tobias@hieta.se>
Tue, 24 Oct 2023 06:25:58 +0000 (08:25 +0200)
(cherry picked from commit a157a82b1e7a8d4be34cc862db4b42fa9db363d0)

mlir/lib/ExecutionEngine/CRunnerUtils.cpp

index 7f800e8..c31ae3a 100644 (file)
@@ -16,7 +16,8 @@
 #include "mlir/ExecutionEngine/Msan.h"
 
 #ifndef _WIN32
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
+    defined(__DragonFly__)
 #include <cstdlib>
 #else
 #include <alloca.h>