gentoo-ebuilds/net-analyzer/sniffit/files/sniffit-0.6-tinfo.patch
Sam James c0b06d10cd
net-analyzer/sniffit: add 0.6_p20240924
Also, add -std=gnu89. I started fixing remaining issues after the
ones already fixed in the last release + git but there's way too many
others.

Closes: https://bugs.gentoo.org/861236
Closes: https://bugs.gentoo.org/877295
Cloess: https://bugs.gentoo.org/919192
Signed-off-by: Sam James <sam@gentoo.org>
2024-11-13 18:25:45 +00:00

12 lines
591 B
Diff

--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,8 @@ AC_PROG_CC
# not use it because src/sn_config.h does not define INCLUDE_INTERFACE because
# other conditions are not met. It would be better to move that logic entirely
# to Autoconf and to define (or not) INCLUDE_INTERFACE only here.
-AC_CHECK_LIB(ncurses, initscr)
+AC_CHECK_LIB(ncurses, initscr, , [AC_MSG_ERROR([Couldn't find libncurses])])
+AC_SEARCH_LIBS(keypad, tinfo, , [AC_MSG_ERROR([Couldn't find libncurses])])
AC_CHECK_LIB(pcap, pcap_open_live, , [AC_MSG_ERROR([Couldn't find libpcap])])
# Checks for header files.