Skip to content

Commit 1e96f53

Browse files
authored
builtin: skip alloca.h include on OpenBSD (#81)
alloca() is provided by stdlib.h on OpenBSD, so the separate alloca.h include is not needed and causes a faild build.
1 parent dec1f94 commit 1e96f53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/compiler/builtin/builtin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#ifdef _WIN32
66
#include <malloc.h>
7-
#else
7+
#elif !defined(__OpenBSD__)
88
#include <alloca.h>
99
#endif
1010

0 commit comments

Comments
 (0)