[Libsysio-commit] HEAD: libsysio/include sysio.h
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2007-01-02 20:44:14
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv2466/include Modified Files: sysio.h Log Message: Fix return type for readlink with newer versions of glibc >From Oleg Drokin at Cluster File Systems: [...] newer glibc version readlink returns ssize_t instead of int, and thus libsysio cannot be compiled anymore due to conflicting declarations. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.38 retrieving revision 1.39 diff -u -w -b -B -p -r1.38 -r1.39 --- sysio.h 1 Jun 2006 21:28:57 -0000 1.38 +++ sysio.h 2 Jan 2007 20:44:10 -0000 1.39 @@ -252,7 +252,11 @@ extern int SYSIO_INTERFACE_NAME(ftruncat #endif extern int SYSIO_INTERFACE_NAME(rmdir)(const char *path); extern int SYSIO_INTERFACE_NAME(symlink)(const char *path1, const char *path2); +#ifdef HAVE_POSIX_1003_READLINK +extern ssize_t SYSIO_INTERFACE_NAME(readlink)(const char *path, +#else extern int SYSIO_INTERFACE_NAME(readlink)(const char *path, +#endif char *buf, size_t bufsiz); extern int SYSIO_INTERFACE_NAME(link)(const char *oldpath, const char *newpath); |