ptrdiff_t in CURRENT

Jeffrey M. Vinocur jeff at litech.org
Sun Dec 15 21:49:29 UTC 2013


I thought I would trying building CURRENT since everyone else was, and 
discovered this instead:

gcc -g -O2 -I../include  -c setproctitle.c
In file included from setproctitle.c:16:
../include/clibrary.h:134: error: conflicting types for 'ptrdiff_t'
/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/include/stddef.h:149: note: previous 
declaration of 'ptrdiff_t' was here
make[1]: *** [setproctitle.o] Error 1


The implicated bit of clibrary.h is below, interestingly the implicated 
bit of stddef.h has about a zillion ptrdiff-related #defines, but 
HAVE_PTRDIFF_T is not one of them.

     #if !HAVE_PTRDIFF_T
     typedef long            ptrdiff_t;
     #endif

Linux 2.6.32-41-server #94-Ubuntu SMP Fri Jul 6 18:15:07 UTC 2012 x86_64


-- 
Jeffrey M. Vinocur
jeff at litech.org


More information about the inn-workers mailing list