1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

lib: texpect. Fix the build on Solaris.

Bug 11092 - texpect requires routines err and errx

https://bugzilla.samba.org/show_bug.cgi?id=11092

Signed-off-by: Tom Schulz <schulz@adi.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Feb 17 18:09:52 CET 2015 on sn-devel-104
This commit is contained in:
Tom Schulz 2015-02-13 13:47:14 -08:00 committed by Andreas Schneider
parent 16a526be4f
commit 4bbfc54d09
2 changed files with 6 additions and 1 deletions

View File

@ -52,7 +52,12 @@
#endif /* STREAMPTY */
#include <popt.h>
#ifdef HAVE_ERR_H
#include <err.h>
#else
#include <ccan/err/err.h>
#endif
struct command {
enum { CMD_EXPECT = 0, CMD_SEND, CMD_PASSWORD } type;

View File

@ -4,4 +4,4 @@ def configure(conf):
conf.CHECK_FUNCS_IN('openpty', 'util', checklibc=True, headers='pty.h util.h bsd/libutil.h libutil.h')
def build(bld):
bld.SAMBA_BINARY('texpect', 'texpect.c', deps='popt util', install=False)
bld.SAMBA_BINARY('texpect', 'texpect.c', deps='popt util ccan', install=False)