Subject: bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin

From: Paul Eggert <[email-masked]>
Date: Fri, 21 Feb 2014 00:54:09 -0800

Emacs uses a unistd.h wrapper to work around porting issues to various 
platforms.  One issue is that older Mac OS X releases have a non-POSIX 
API for 'readlink'.

Just to confirm, are you running Mac OS X 10.3.9 ("Panther")?

Could you please the output of gcc -E on that file?  Something like this:

gcc -E -std=gnu99 -DHAVE_CONFIG_H -I. \
-I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib \
-I../src \
-I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/src \
-I/opt/exp/gnu/include   -g3 -O2 careadlinkat.c