summaryrefslogtreecommitdiff
path: root/source4/heimdal/lib
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2009-06-08 22:11:33 +0200
committerBjörn Jacke <bj@sernet.de>2009-06-08 22:14:49 +0200
commitd2bb72d713d9c339c00536256f44dacf51e57414 (patch)
tree02b8d99d97bfbed128cbbb8543564c20a54cdc08 /source4/heimdal/lib
parent6dd1f99ec09aff71f04d103554e848e0ddcf0cb7 (diff)
downloadsamba-d2bb72d713d9c339c00536256f44dacf51e57414.tar.gz
samba-d2bb72d713d9c339c00536256f44dacf51e57414.tar.bz2
samba-d2bb72d713d9c339c00536256f44dacf51e57414.zip
s4:heimdal: fix build on FreeBSD
Patch from Timur I. Bakeyev sent to samba-technical: Heimdal requires openpty() presence. FreeBSD has in in standard libc, so autodetection works, but compilation fails, as declaration of this function is missing. This patch adds proper header detection and inclusion for openpty().
Diffstat (limited to 'source4/heimdal/lib')
-rw-r--r--source4/heimdal/lib/roken/rkpty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/heimdal/lib/roken/rkpty.c b/source4/heimdal/lib/roken/rkpty.c
index 309469722b..ebc3a5d208 100644
--- a/source4/heimdal/lib/roken/rkpty.c
+++ b/source4/heimdal/lib/roken/rkpty.c
@@ -48,6 +48,9 @@
#ifdef HAVE_UTIL_H
#include <util.h>
#endif
+#ifdef HAVE_LIBUTIL_H
+#include <libutil.h>
+#endif
#include "roken.h"
#include <getarg.h>