Commit e2930741 authored by Alexandre Julliard's avatar Alexandre Julliard

Added configure check for readlink.

parent 36048242
......@@ -15484,6 +15484,7 @@ fi
for ac_func in \
_lwp_create \
_lwp_self \
......@@ -15519,6 +15520,7 @@ for ac_func in \
popen \
pread \
pwrite \
readlink \
rfork \
select \
sendmsg \
......
......@@ -1040,6 +1040,7 @@ AC_CHECK_FUNCS(\
popen \
pread \
pwrite \
readlink \
rfork \
select \
sendmsg \
......
......@@ -722,6 +722,11 @@
#undef HAVE_PWRITE
/*
Define to 1 if you have the `readlink'
function. */
#undef HAVE_READLINK
/*
Define to 1 if you have the <regex.h>
header file. */
#undef HAVE_REGEX_H
......
......@@ -248,6 +248,10 @@ ssize_t pread( int fd, void *buf, size_t count, off_t offset );
ssize_t pwrite( int fd, const void *buf, size_t count, off_t offset );
#endif /* HAVE_PWRITE */
#ifndef HAVE_READLINK
int readlink( const char *path, char *buf, size_t size );
#endif /* HAVE_READLINK */
#ifndef HAVE_SIGSETJMP
# include <setjmp.h>
typedef jmp_buf sigjmp_buf;
......
......@@ -18,6 +18,7 @@ C_SRCS = \
mkstemps.c \
pread.c \
pwrite.c \
readlink.c \
sigsetjmp.c \
spawn.c \
statfs.c \
......
/*
* readlink function
*
* Copyright 2004 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "config.h"
#include "wine/port.h"
#include <errno.h>
#ifndef HAVE_READLINK
int readlink( const char *path, char *buf, size_t size )
{
errno = -ENOSYS;
return -1;
}
#endif /* HAVE_READLINK */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment