diff options
author | Lev Walkin <vlm@lionet.info> | 2016-07-02 19:55:23 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2016-07-02 19:55:23 +0000 |
commit | 619f0cd736b579eb88a25951d8b5698aebca5f7d (patch) | |
tree | 25c7fa814fb95622d14631c420972430b22e61ec /skeletons | |
parent | 0ec6b19a78ac3457fb306fb9785f579b4ae9545b (diff) |
alloca.h is not universally available
Diffstat (limited to 'skeletons')
-rw-r--r-- | skeletons/asn_system.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/skeletons/asn_system.h b/skeletons/asn_system.h index a9c4ad3c..24d8da79 100644 --- a/skeletons/asn_system.h +++ b/skeletons/asn_system.h @@ -15,13 +15,16 @@ #include <stdio.h> /* For snprintf(3) */ #include <stdlib.h> /* For *alloc(3) */ -#include <alloca.h> /* For alloca(3) */ #include <string.h> /* For memcpy(3) */ #include <sys/types.h> /* For size_t */ #include <limits.h> /* For LONG_MAX */ #include <stdarg.h> /* For va_start */ #include <stddef.h> /* for offsetof and ptrdiff_t */ +#ifdef HAVE_ALLOCA_H +#include <alloca.h> /* For alloca(3) */ +#endif + #ifdef _WIN32 #include <malloc.h> |