MDEV-8973 Build failure on missing alloca.h

in *BSD family alloca() is in stdlib.h
This commit is contained in:
Sergei Golubchik 2015-11-13 19:21:45 +01:00
parent 0c5f36d579
commit 3228ad33f0

View file

@ -34,6 +34,8 @@ extern "C" {
#ifndef __cplusplus
#define inline __inline
#endif
#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
#include <stdlib.h>
#else
#include <alloca.h>
#endif