diff options
author | François Revol | 2010-07-26 11:41:04 +0200 |
---|---|---|
committer | Karel Zak | 2010-07-26 11:41:04 +0200 |
commit | 1bf4407a1d40e5a87f9cfbb44116ce52adce9ef8 (patch) | |
tree | 3210eb0f9f1e3775012b69b2378d212d9a37c1ae | |
parent | fdisk: fix use of non portable type (diff) | |
download | kernel-qcow2-util-linux-1bf4407a1d40e5a87f9cfbb44116ce52adce9ef8.tar.gz kernel-qcow2-util-linux-1bf4407a1d40e5a87f9cfbb44116ce52adce9ef8.tar.xz kernel-qcow2-util-linux-1bf4407a1d40e5a87f9cfbb44116ce52adce9ef8.zip |
portability: use standard constants
Signed-off-by: François Revol <revol@free.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | sys-utils/flock.c | 2 | ||||
-rw-r--r-- | text-utils/more.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sys-utils/flock.c b/sys-utils/flock.c index 75c007c73..1f1c563b1 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 2eedfbe1a..20efc28d6 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -62,6 +62,10 @@ #include <regex.h> #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)) |