Commit 27bb311d authored by Alexandre Julliard's avatar Alexandre Julliard

Added implementation of lstat to port.c.

parent 0a5d9ef2
......@@ -739,6 +739,7 @@ AC_CHECK_FUNCS(\
getservbyport \
getsockopt \
inet_network \
lstat \
memmove \
mmap \
rfork \
......
......@@ -35,6 +35,7 @@
#include "windef.h"
#include "winbase.h"
#include "wine/winbase16.h"
#include "wine/port.h"
#include "drive.h"
#include "file.h"
#include "global.h"
......
......@@ -209,6 +209,9 @@
/* Define if you have the inet_network function. */
#undef HAVE_INET_NETWORK
/* Define if you have the lstat function. */
#undef HAVE_LSTAT
/* Define if you have the memmove function. */
#undef HAVE_MEMMOVE
......
......@@ -109,4 +109,8 @@ int strcasecmp(const char *str1, const char *str2);
int usleep (unsigned int useconds);
#endif /* !defined(HAVE_USLEEP) */
#ifndef HAVE_LSTAT
int lstat(const char *file_name, struct stat *buf);
#endif /* HAVE_LSTAT */
#endif /* !defined(__WINE_WINE_PORT_H) */
......@@ -361,6 +361,17 @@ int statfs(const char *name, struct statfs *info)
/***********************************************************************
* lstat
*/
#ifndef HAVE_LSTAT
int lstat(const char *file_name, struct stat *buf)
{
return stat( file_name, buf );
}
#endif /* HAVE_LSTAT */
/***********************************************************************
* wine_anon_mmap
*
* Portable wrapper for anonymous mmaps
......
......@@ -30,6 +30,7 @@
#include <unistd.h>
#include <stdarg.h>
#include "wine/port.h"
#include "process.h"
#include "thread.h"
#include "server.h"
......
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