Fix building the Hashicorp plugin on OpenBSD / NetBSD and DragonFlyBSD

This commit is contained in:
Brad Smith 2022-06-17 18:07:13 -04:00 committed by Daniel Black
parent 20b8e5a07e
commit a9fe646797

View file

@ -26,7 +26,7 @@
#ifdef _WIN32
#include <malloc.h>
#define alloca _alloca
#elif !defined(__FreeBSD__)
#elif !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
#include <alloca.h>
#endif
#include <algorithm>