summaryrefslogtreecommitdiffstats
path: root/lib/texpect/texpect.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-12-10 12:23:04 +0000
committerGünther Deschner <gd@samba.org>2014-12-18 16:31:48 +0100
commit0da7295fbc34170385d2b6bd165685aa092ab0ec (patch)
treefe728058dd74581f04b0915b4bd7cd34f42cb0c6 /lib/texpect/texpect.c
parent349ba5188a93a3d4679de4908af8cef8cf0862cb (diff)
downloadsamba-0da7295fbc34170385d2b6bd165685aa092ab0ec.tar.gz
samba-0da7295fbc34170385d2b6bd165685aa092ab0ec.tar.xz
samba-0da7295fbc34170385d2b6bd165685aa092ab0ec.zip
lib/texpect: prefer bsd/libutil.h if available
Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Thu Dec 18 16:31:48 CET 2014 on sn-devel-104
Diffstat (limited to 'lib/texpect/texpect.c')
-rw-r--r--lib/texpect/texpect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/texpect/texpect.c b/lib/texpect/texpect.c
index d78808188b..75a32f4bed 100644
--- a/lib/texpect/texpect.c
+++ b/lib/texpect/texpect.c
@@ -41,7 +41,9 @@
#ifdef HAVE_UTIL_H
#include <util.h>
#endif
-#ifdef HAVE_LIBUTIL_H
+#ifdef HAVE_BSD_LIBUTIL_H
+#include <bsd/libutil.h>
+#elif defined HAVE_LIBUTIL_H
#include <libutil.h>
#endif