aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/getopt_long.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-03-23 14:21:06 -0700
committerGuy Harris <guy@alum.mit.edu>2018-03-23 22:39:07 +0000
commitd12a41b17a006ccc1b0f98e9df3fc442e4ee7643 (patch)
tree009988dd542bad8784861bce8bb0df0483ba122a /wsutil/getopt_long.c
parenta7edc4f25f1cffb452959e2093fe7b2a65e75d79 (diff)
Include alloca.h if we have it.
Bug: 14552 Change-Id: I799691f7f33ca56748ed4e51d7d548f37769837b Reviewed-on: https://code.wireshark.org/review/26611 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil/getopt_long.c')
-rw-r--r--wsutil/getopt_long.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wsutil/getopt_long.c b/wsutil/getopt_long.c
index 3b19fe6c32..3e2a9bce5e 100644
--- a/wsutil/getopt_long.c
+++ b/wsutil/getopt_long.c
@@ -64,6 +64,14 @@
# define _(msgid) (msgid)
#endif
+/*
+ * If we have alloca.h, we assume we need it.
+ */
+#
+#ifdef HAVE_ALLOCA_H
+# include <alloca.h>
+#endif
+
#ifdef _WIN32
# define alloca _alloca
#endif