bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

coreutils-6.0 on BeOS (7)


From: Bruno Haible
Subject: coreutils-6.0 on BeOS (7)
Date: Wed, 23 Aug 2006 20:05:26 +0200
User-agent: KMail/1.9.1

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  <address@hidden>

        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"
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]