summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--text-utils/Makefile.am5
-rw-r--r--text-utils/ul.c1
2 files changed, 4 insertions, 2 deletions
diff --git a/text-utils/Makefile.am b/text-utils/Makefile.am
index 415aab1b..5d6ee8cb 100644
--- a/text-utils/Makefile.am
+++ b/text-utils/Makefile.am
@@ -12,6 +12,7 @@ col_LDADD = -L$(top_builddir)/gnulib -lgnu
column_LDADD = -L$(top_builddir)/gnulib -lgnu
hexdump_LDADD = -L$(top_builddir)/gnulib -lgnu
rev_LDADD = -L$(top_builddir)/gnulib -lgnu
+ul_LDADD = -L$(top_builddir)/gnulib -lgnu
if HAVE_NCURSES
bin_PROGRAMS = more
@@ -19,11 +20,11 @@ usrbin_exec_PROGRAMS += ul pg
if HAVE_TINFO
more_LDADD = -ltinfo
pg_LDADD = -ltinfo @NCURSES_LIBS@
-ul_LDADD = -ltinfo
+ul_LDADD += -ltinfo
else
more_LDADD = @NCURSES_LIBS@
pg_LDADD = @NCURSES_LIBS@
-ul_LDADD = @NCURSES_LIBS@
+ul_LDADD += @NCURSES_LIBS@
endif
dist_man_MANS += ul.1 more.1 pg.1
else
diff --git a/text-utils/ul.c b/text-utils/ul.c
index 30f24e9d..7ac0c0cc 100644
--- a/text-utils/ul.c
+++ b/text-utils/ul.c
@@ -49,6 +49,7 @@
#include <signal.h> /* for signal() */
#include <err.h>
#include <errno.h>
+#include <argp.h>
#include "nls.h"
#include "xalloc.h"