Skip to content
Snippets Groups Projects
Commit e2930741 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

Added configure check for readlink.

parent 36048242
No related branches found
No related tags found
No related merge requests found
......@@ -15482,6 +15482,7 @@ fi
 
 
 
 
 
for ac_func in \
......@@ -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 \
......
......@@ -721,6 +721,11 @@
function. */
#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. */
......
......@@ -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 */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment