From 1bf4407a1d40e5a87f9cfbb44116ce52adce9ef8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 26 Jul 2010 11:41:04 +0200 Subject: [PATCH] portability: use standard constants MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: François Revol Signed-off-by: Karel Zak --- sys-utils/flock.c | 2 +- text-utils/more.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sys-utils/flock.c b/sys-utils/flock.c index 75c007c7..1f1c563b 100644 --- a/sys-utils/flock.c +++ b/sys-utils/flock.c @@ -253,7 +253,7 @@ int main(int argc, char *argv[]) memset(&sa, 0, sizeof sa); sa.sa_handler = timeout_handler; - sa.sa_flags = SA_ONESHOT; + sa.sa_flags = SA_RESETHAND; sigaction(SIGALRM, &sa, &old_sa); setitimer(ITIMER_REAL, &timeout, &old_timer); diff --git a/text-utils/more.c b/text-utils/more.c index 2eedfbe1..20efc28d 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -62,6 +62,10 @@ #include #undef _REGEX_RE_COMP +#ifndef XTABS +#define XTABS TAB3 +#endif + #define VI "vi" /* found on the user's path */ #define Fopen(s,m) (Currline = 0,file_pos=0,fopen(s,m)) -- 2.39.5