diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-01-22 01:48:34 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-01-22 01:48:34 +0300 |
commit | ec46cac044a85a5086f26c66ce0da98b40ee5574 (patch) | |
tree | f32072a6f58f5b1a1d9cd4f96f053ef389623ff4 | |
parent | 10d89f0e17a2db4c6329c62e0f4db143e2dd735b (diff) | |
download | util-linux-old-ec46cac044a85a5086f26c66ce0da98b40ee5574.tar.gz |
Link with gnulib
-rw-r--r-- | login-utils/Makefile.am | 3 | ||||
-rw-r--r-- | login-utils/checktty.c | 1 | ||||
-rw-r--r-- | login-utils/wall.c | 4 |
3 files changed, 7 insertions, 1 deletions
diff --git a/login-utils/Makefile.am b/login-utils/Makefile.am index 9c64149f..d4ec1258 100644 --- a/login-utils/Makefile.am +++ b/login-utils/Makefile.am @@ -92,6 +92,7 @@ if BUILD_WALL usrbin_exec_PROGRAMS += wall wall_SOURCES = wall.c ttymsg.c ttymsg.h dist_man_MANS += wall.1 +wall_LDADD = -L$(top_builddir)/gnulib -lgnu if USE_TTY_GROUP if MAKEINSTALL_DO_CHOWN @@ -107,4 +108,4 @@ checktty_test_SOURCES = checktty.c login.h checktty_test_CPPFLAGS = -DMAIN_TEST_CHECKTTY $(AM_CPPFLAGS) islocal_test_SOURCES = islocal.c islocal_test_CPPFLAGS = -DMAIN_TEST_ISLOCAL $(AM_CPPFLAGS) - +checktty_test_LDADD = $(SOCKET_LIBS) diff --git a/login-utils/checktty.c b/login-utils/checktty.c index 264cc603..f397a9a2 100644 --- a/login-utils/checktty.c +++ b/login-utils/checktty.c @@ -23,6 +23,7 @@ #include <netdb.h> #include <sys/syslog.h> #include <ctype.h> +#include <limits.h> #include "nls.h" #include <sys/sysmacros.h> diff --git a/login-utils/wall.c b/login-utils/wall.c index fc4d792c..d71dcc7a 100644 --- a/login-utils/wall.c +++ b/login-utils/wall.c @@ -58,6 +58,7 @@ #include <time.h> #include <unistd.h> #include <utmp.h> +#include <argp.h> #include "nls.h" #include "xalloc.h" @@ -66,6 +67,9 @@ #include "pathnames.h" #include "carefulputc.h" +#ifndef __P +#define __P(x) x +#endif void makemsg __P((char *)); #define IGNOREUSER "sleeper" |