Make alloca.h optional

This commit is contained in:
David Bernard 2016-01-19 06:17:31 +00:00
parent eaa5637568
commit 3f12e16f27
2 changed files with 4 additions and 0 deletions

View File

@ -15,7 +15,9 @@
#include <inttypes.h> #include <inttypes.h>
#include <stdint.h> #include <stdint.h>
#ifdef OS_SOLARIS
#include <alloca.h> #include <alloca.h>
#endif
#include <algorithm> #include <algorithm>
#include <climits> #include <climits>

View File

@ -20,7 +20,9 @@
#ifndef OS_WIN #ifndef OS_WIN
#include <unistd.h> #include <unistd.h>
#endif #endif
#ifdef OS_SOLARIS
#include <alloca.h> #include <alloca.h>
#endif
#include "db/filename.h" #include "db/filename.h"
#include "db/dbformat.h" #include "db/dbformat.h"