Re: [Libsysio-commit] HEAD: libsysio/src readlink.c
Brought to you by:
lward
From: Klundt, R. <rk...@sa...> - 2007-03-26 18:04:06
|
On this one, the Rules.make file is defining _XOPEN_SOURCE=3D600. But = the configure step does not have that defined. So it can prompt the ssize_t readlink and pass that test in the catamount build. Then when the compile comes around the ssize_t readlink is seen and conflicts with the int version due to that define. Don't know/remember why that is in Rules.make? Ruth =20 -----Original Message----- From: lib...@li... [mailto:lib...@li...] On Behalf Of Lee Ward Sent: Friday, March 23, 2007 2:02 PM To: lib...@li... Subject: [Libsysio-commit] HEAD: libsysio/src readlink.c Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv12453/src Modified Files: readlink.c Log Message: The configure test for readlink was broken. The readlink module was improperly forcing the BSD variance. This is in compliance with the proper POSIX options. One note: The GNU includes just don't define a prototype for readlink sans extensions. The choices made here should be the correct ones. Your mileage may vary... Index: readlink.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/libsysio/libsysio/src/readlink.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -b -B -p -r1.7 -r1.8 --- readlink.c 2 Jan 2007 20:44:10 -0000 1.7 +++ readlink.c 23 Mar 2007 20:02:13 -0000 1.8 @@ -41,9 +41,6 @@ * le...@sa... */ =20 -#if defined(__linux__) -#define _BSD_SOURCE -#endif #include <unistd.h> #include <errno.h> #include <assert.h> ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V _______________________________________________ Libsysio-commit mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libsysio-commit |