From 8b10627adfe4f75b68a41b852ead8c269b16685b Mon Sep 17 00:00:00 2001 From: Adrian Lopez Date: Tue, 30 Jun 2020 21:55:19 -0400 Subject: [PATCH] Fix dependency issues when fdupes is configured to not use ncurses. --- Makefile.am | 2 -- fdupes.c | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index ecb5087..18ffdbf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,8 +17,6 @@ fdupes_SOURCES = fdupes.c\ flags.h\ mbstowcs_escape_invalid.c\ mbstowcs_escape_invalid.h\ - positive_wcwidth.c\ - positive_wcwidth.h\ md5/md5.c\ md5/md5.h dist_man1_MANS = fdupes.1 diff --git a/fdupes.c b/fdupes.c index 29b2921..7bab2a8 100644 --- a/fdupes.c +++ b/fdupes.c @@ -35,14 +35,16 @@ #include #include #include +#ifndef NO_NCURSES #ifdef HAVE_NCURSESW_CURSES_H #include #else #include #endif +#include "ncurses-interface.h" +#endif #include "fdupes.h" #include "errormsg.h" -#include "ncurses-interface.h" #include "log.h" #include "sigint.h" #include "flags.h"