On 25/09/16 06:16, Paul Eggert wrote:
I attempted to fix the problem by installing the attached patch into
gnulib master. I can't easily test this, though, as I don't have macOS.

The patch did not include the substitution of HAVE_SYS_CDEFS_H needed when creating sched.h.

Below is from a CentOS 5 host:

make[4]: Entering directory `/home/tgc/tmp/daily_build/gnulib/000-gnulib-simple-59aa69f/gllib'
depbase=`echo glthread/cond.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DNO_XMALLOC -DEXEEXT=\"\" -I. -I.. -DGNULIB_STRICT_CHECKING=1 -fvisibility=hidden -g -O2 -MT glthread/cond.o -MD -MP -MF $depbase.Tpo -c -o glthread/cond.o glthread/cond.c &&\
        mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/pthread.h:24,
                 from ./glthread/lock.h:90,
                 from ./glthread/cond.h:56,
                 from glthread/cond.c:23:
./sched.h:27:6: error: token "@" is not valid in preprocessor expressions

$ sed -n '27p' gllib/sched.h


Reply via email to