[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
coreutils-6.0 on BeOS (8)
From: |
Bruno Haible |
Subject: |
coreutils-6.0 on BeOS (8) |
Date: |
Wed, 23 Aug 2006 20:06:21 +0200 |
User-agent: |
KMail/1.9.1 |
On BeOS, compilation fails like this:
source='ls.c' object='ls.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/sh ../build-aux/depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib -Wall
-I/boot/home/config/include -g -O2 -c ls.c
/boot/home/gnubuild/coreutils-6.0/src/ls.c: In function `main':
/boot/home/gnubuild/coreutils-6.0/src/ls.c:1199: `SA_RESTART' undeclared (first
use in this function)
/boot/home/gnubuild/coreutils-6.0/src/ls.c:1199: (Each undeclared identifier is
reported only once
/boot/home/gnubuild/coreutils-6.0/src/ls.c:1199: for each function it appears
in.)
BeOS has a sigaction function with SA_NOCLDSTOP, but no SA_RESTART. This
workaround does it.
2006-08-19 Bruno Haible <address@hidden>
BeOS portability.
* src/ls.c (SA_RESTART): Fallback define.
--- src/ls.c.bak 2006-08-19 13:18:35.000000000 +0200
+++ src/ls.c 2006-08-19 15:40:45.000000000 +0200
@@ -64,7 +64,12 @@
/* Use SA_NOCLDSTOP as a proxy for whether the sigaction machinery is
present. */
-#ifndef SA_NOCLDSTOP
+#ifdef SA_NOCLDSTOP
+ /* BeOS doesn't have SA_RESTART. */
+# ifndef SA_RESTART
+# define SA_RESTART 0
+# endif
+#else
# define SA_NOCLDSTOP 0
# define sigprocmask(How, Set, Oset) /* empty */
# define sigset_t int
- coreutils-6.0 on BeOS (8),
Bruno Haible <=