summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-01-22 01:45:18 +0300
committerIgor Pashev <pashev.igor@gmail.com>2012-01-22 01:45:18 +0300
commit10d89f0e17a2db4c6329c62e0f4db143e2dd735b (patch)
tree42e7e2b5d6aaec394628ca428ca441400c7807e3
parent7a4dbf9f8334ebb278e0c2ae1dbe4ba151982194 (diff)
downloadutil-linux-old-10d89f0e17a2db4c6329c62e0f4db143e2dd735b.tar.gz
Link with gnulib
-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"