Skip to content

Commit

Permalink
FreeBSD doesn't have alloca.h
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jun 19, 2014
1 parent 923bd98 commit 13580f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Expand Up @@ -662,6 +662,8 @@ AC_CHECK_HEADER([if_tun.h],
[AC_CHECK_HEADER([net/tun/if_tun.h],
[AC_DEFINE([IF_TUN_HDR], ["net/tun/if_tun.h"])])])])])

AC_CHECK_HEADER([alloca.h], AC_DEFINE([HAVE_ALLOCA_H]))

if test "$ssl_library" = "openssl" || test "$ssl_library" = "both"; then
oldLIBS="$LIBS"
LIBS="$LIBS $OPENSSL_LIBS"
Expand Down
2 changes: 2 additions & 0 deletions ntlm.c
Expand Up @@ -26,7 +26,9 @@
#include <stdio.h>
#include <stdarg.h>
#include <ctype.h>
#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#endif
#ifndef _WIN32
#include <sys/wait.h>
#endif
Expand Down

0 comments on commit 13580f5

Please sign in to comment.