Current-Users archive

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

reallocarr.c compile errors



Hi,

I started getting compilation errors cross-compiling macppc from linux a few days ago:

cc -O  -I. -I./include -I/home/scole/nbsd/src/tools/compat -I/home/scole/nbsd/src/tools/compat/sys  -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o reallocarr.lo.o    /home/scole/nbsd/src/tools/compat/../../lib/libc/stdlib/reallocarr.c
/home/scole/nbsd/src/tools/compat/../../lib/libc/stdlib/reallocarr.c:33:9: error: expected declaration specifiers or '...' before string constant
 __RCSID("$NetBSD: reallocarr.c,v 1.2 2015/07/16 00:03:59 kamil Exp $");
         ^
/home/scole/nbsd/src/tools/compat/../../lib/libc/stdlib/reallocarr.c:43:12: error: expected declaration specifiers or '...' before numeric constant
 __CTASSERT(65535 < SIZE_MAX / 65535);
            ^
*** [reallocarr.lo] Error code 1


Home | Main Index | Thread Index | Old Index