Subject: CVS commit: pkgsrc/misc/rlwrap
From: Leonardo Taccari
Date: 2018-09-18 16:17:26
Message id: 20180918141726.B9B4CFBF8@cvs.NetBSD.org

Log Message:
rlwrap: Properly include <util.h> for openpty(3)

Previously on NetBSD and probably other system that has openpty(3)
in util.h the compilation lead to a:

 ptytty.c: In function 'ptytty_get_pty':
 ptytty.c:72:7: warning: implicit declaration of function 'openpty' \ 
[-Wimplicit-function-declaration]
    if (openpty(&pfd, fd_tty, tty_name, NULL, NULL) != -1) {
        ^~~~~~~

due a missing <util.h> inclusion.

Add a patch for configure.ac (and auto* tools to USE_TOOLS) in
order to address that.

Originally reported by Matthew Mondor via PR pkg/46190 and thanks
to Matthew and <wiz> for their analysis!

Files:
RevisionActionfile
1.1addpkgsrc/misc/rlwrap/patches/patch-configure.ac
1.7modifypkgsrc/misc/rlwrap/distinfo
1.20modifypkgsrc/misc/rlwrap/Makefile