On BeOS, compilation fails like this:

source='ln.c' object='ln.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 ln.c
/boot/home/gnubuild/coreutils-6.0/src/ln.c: In function `do_link':
/boot/home/gnubuild/coreutils-6.0/src/ln.c:293: `EDQUOT' undeclared (first use 
in this function)
/boot/home/gnubuild/coreutils-6.0/src/ln.c:293: (Each undeclared identifier is 
reported only once
/boot/home/gnubuild/coreutils-6.0/src/ln.c:293: for each function it appears 
in.)
make[3]: *** [ln.o] Error 1
make[3]: Leaving directory `/boot/home/gnubuild/coreutils-6.0/src'

BeOS has no quotas and no EDQUOT. Fortunately it is easy to fix.


2006-08-19  Bruno Haible  <[EMAIL PROTECTED]>

        BeOS portability.
        * src/ln.c (EDQUOT): Fallback define.

--- src/ln.c.bak        2006-07-01 09:03:29.000000000 +0200
+++ src/ln.c    2006-08-19 15:31:05.000000000 +0200
@@ -31,6 +31,11 @@
 #include "quote.h"
 #include "yesno.h"
 
+/* BeOS doesn't have quotas.  */
+#ifndef EDQUOT
+# define EDQUOT ENOSPC
+#endif
+
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "ln"
 


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to