summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-01-22 02:29:16 +0300
committerIgor Pashev <pashev.igor@gmail.com>2012-01-22 02:29:16 +0300
commit3fdd5176d5dc6c3aa2661c6a2f2380ca607cb425 (patch)
tree1aca7ac4b25fe5d16d0ff7c49dd13f56367f7a18
parent27c5e2a9d42041e5010593cfb25ab2cf3a8d6277 (diff)
downloadutil-linux-old-3fdd5176d5dc6c3aa2661c6a2f2380ca607cb425.tar.gz
Restored building renice (with gnulib)
-rw-r--r--sys-utils/Makefile.am9
-rw-r--r--sys-utils/renice.c1
2 files changed, 6 insertions, 4 deletions
diff --git a/sys-utils/Makefile.am b/sys-utils/Makefile.am
index 7d3ab8cf..8a703a5a 100644
--- a/sys-utils/Makefile.am
+++ b/sys-utils/Makefile.am
@@ -3,19 +3,20 @@ include $(top_srcdir)/config/include-Makefile.am
bin_PROGRAMS =
sbin_PROGRAMS =
usrsbin_exec_PROGRAMS =
-usrbin_exec_PROGRAMS = flock
+usrbin_exec_PROGRAMS = flock renice
-dist_man_MANS = flock.1
+dist_man_MANS = flock.1 renice.1
flock_LDADD = -L$(top_builddir)/gnulib -lgnu
+renice_LDADD = -L$(top_builddir)/gnulib -lgnu
if LINUX
bin_PROGRAMS += dmesg
sbin_PROGRAMS += ctrlaltdel fsfreeze fstrim
usrbin_exec_PROGRAMS += cytune setarch
usrsbin_exec_PROGRAMS += ldattach tunelp rtcwake readprofile
-usrbin_exec_PROGRAMS += ipcrm ipcs ipcmk renice setsid
-dist_man_MANS += ipcrm.1 ipcs.1 ipcmk.1 renice.1 setsid.1 \
+usrbin_exec_PROGRAMS += ipcrm ipcs ipcmk setsid
+dist_man_MANS += ipcrm.1 ipcs.1 ipcmk.1 setsid.1 \
readprofile.1
dist_man_MANS += dmesg.1 ctrlaltdel.8 cytune.8 setarch.8 \
diff --git a/sys-utils/renice.c b/sys-utils/renice.c
index 6b1a9726..c2b6fc24 100644
--- a/sys-utils/renice.c
+++ b/sys-utils/renice.c
@@ -45,6 +45,7 @@
#include <string.h>
#include <errno.h>
#include <err.h>
+#include <argp.h>
#include "nls.h"
static int donice(int,int,int);