100-no-interactive.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --- a/src/Makefile.in
  2. +++ b/src/Makefile.in
  3. @@ -3,7 +3,6 @@ PROGRAMS += nft
  4. nft-destdir := @sbindir@
  5. nft-obj += main.o
  6. -nft-obj += cli.o
  7. nft-obj += rule.o
  8. nft-obj += statement.o
  9. nft-obj += datatype.o
  10. --- a/src/main.c
  11. +++ b/src/main.c
  12. @@ -335,7 +335,7 @@ int main(int argc, char * const *argv)
  13. if (scanner_read_file(scanner, filename, &internal_location) < 0)
  14. goto out;
  15. } else if (interactive) {
  16. - cli_init(&state);
  17. + fprintf(stderr, "%s: interactive mode not supported\n", argv[0]);
  18. return 0;
  19. } else {
  20. fprintf(stderr, "%s: no command specified\n", argv[0]);
  21. --- a/configure.ac
  22. +++ b/configure.ac
  23. @@ -71,13 +71,11 @@ AC_CHECK_LIB([nftnl], [nft_rule_alloc],
  24. AC_CHECK_LIB([gmp], [__gmpz_init], ,
  25. AC_MSG_ERROR([No suitable version of libgmp found]))
  26. -AC_CHECK_LIB([readline], [readline], ,
  27. - AC_MSG_ERROR([No suitable version of libreadline found]))
  28. # Checks for header files.
  29. AC_HEADER_STDC
  30. AC_HEADER_ASSERT
  31. -AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h libintl.h limits.h malloc.h \
  32. +AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h malloc.h \
  33. netdb.h netinet/in.h netinet/ip.h netinet/ip6.h \
  34. netinet/tcp.h netinet/udp.h netinet/ip_icmp.h \
  35. stddef.h stdint.h stdlib.h string.h unistd.h], ,