summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/commonlib/include/commonlib/helpers.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commonlib/include/commonlib/helpers.h b/src/commonlib/include/commonlib/helpers.h
index 4429ea41c3..f3b71d7016 100644
--- a/src/commonlib/include/commonlib/helpers.h
+++ b/src/commonlib/include/commonlib/helpers.h
@@ -137,4 +137,8 @@
#define __unused __attribute__((unused))
#endif
+#ifndef alloca
+#define alloca(x) __builtin_alloca(x)
+#endif
+
#endif /* COMMONLIB_HELPERS_H */