On 01/22/2013 08:43 AM, Paul Eggert wrote:
On 01/21/2013 12:53 PM, Tom G. Christensen wrote:
It works for Solaris 7-10 but still fails in the same way on Solaris 2.6.

OK, thanks, how about this slightly-revised patch?

It makes it worse, now it fails for Solaris < 10.

From Solaris 2.6:
depbase=`echo accept4.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DNO_XMALLOC -DEXEEXT=\"\" -I. -I.. -DGNULIB_STRICT_CHECKING= 1 -I../intl -I/usr/tgcware/include -D_REENTRANT -g -O2 -MT accept4.o -MD -MP -MF $depbase.Tpo -c -o accept4.o accept4.c &&\
        mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/sys/time.h:405,
                 from ./sys/time.h:38,
                 from /usr/include/sys/select.h:16,
                 from ./sys/select.h:27,
from /usr/tgcware/gcc-4.3.6/lib/gcc/sparc-sun-solaris2.6/4.3.6/include-fixed/sys/types.h:431,
                 from ./sys/types.h:28,
                 from ./sys/socket.h:51,
                 from accept4.c:20:
./sys/select.h:506: error: expected declaration specifiers or '...' before 'fd_set' ./sys/select.h:506: error: expected declaration specifiers or '...' before 'fd_set' ./sys/select.h:506: error: expected declaration specifiers or '...' before 'fd_set'
make[4]: *** [accept4.o] Error 1

The error is the same on Solaris 7 & 9.

Preprocessed source for reference:
http://jupiterrise.com/tmp/sol26-accept4.i
http://jupiterrise.com/tmp/sol9-accept4.i

-tgc

Reply via email to