bmon-curses.patch 801 B

1234567891011121314151617181920212223242526
  1. [PATCH] fix build without curses
  2. bmon supports a --disable-curses configure option, but still #error
  3. out if curses wasn't detected, even though the rest of the code is
  4. written to work without curses support.
  5. Fix it by removing the bogus #error line.
  6. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  7. ---
  8. include/bmon/config.h | 2 --
  9. 1 file changed, 2 deletions(-)
  10. Index: bmon-2.1.0/include/bmon/config.h
  11. ===================================================================
  12. --- bmon-2.1.0.orig/include/bmon/config.h
  13. +++ bmon-2.1.0/include/bmon/config.h
  14. @@ -118,8 +118,6 @@
  15. # endif /* !HAVE_CURSES */
  16. #elif defined HAVE_CURSES
  17. # include <curses.h>
  18. -#else
  19. -# error "*** ERROR: Neither ncurses nor curses is present on your system. ***"
  20. #endif /* HAVE_[N]CURSES */
  21. #if defined HAVE_RRD