Module: wine Branch: master Commit: 6d2cf0230ef6f1ecf415c5f591f276798be3f80a URL: https://source.winehq.org/git/wine.git/?a=commit;h=6d2cf0230ef6f1ecf415c5f59...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Oct 6 10:17:27 2021 +0200
libport: Remove the lstat() implementation.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
configure | 1 - configure.ac | 1 - include/config.h.in | 3 --- include/wine/port.h | 4 ---- libs/port/Makefile.in | 1 - libs/port/lstat.c | 29 ----------------------------- 6 files changed, 39 deletions(-)
diff --git a/configure b/configure index 50c29234c80..3de53b0255b 100755 --- a/configure +++ b/configure @@ -17908,7 +17908,6 @@ for ac_func in \ getifaddrs \ getrandom \ kqueue \ - lstat \ mach_continuous_time \ pipe2 \ port_create \ diff --git a/configure.ac b/configure.ac index 42f97efb4a4..c0fa6ec37c8 100644 --- a/configure.ac +++ b/configure.ac @@ -2139,7 +2139,6 @@ AC_CHECK_FUNCS(\ getifaddrs \ getrandom \ kqueue \ - lstat \ mach_continuous_time \ pipe2 \ port_create \ diff --git a/include/config.h.in b/include/config.h.in index e27b23f658f..db58743fe46 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -348,9 +348,6 @@ /* Define to 1 if you have the <linux/videodev2.h> header file. */ #undef HAVE_LINUX_VIDEODEV2_H
-/* Define to 1 if you have the `lstat' function. */ -#undef HAVE_LSTAT - /* Define to 1 if you have the <lwp.h> header file. */ #undef HAVE_LWP_H
diff --git a/include/wine/port.h b/include/wine/port.h index 6e05d73d05a..f3b39582f9c 100644 --- a/include/wine/port.h +++ b/include/wine/port.h @@ -99,10 +99,6 @@ static inline const char *dlerror(void) { return "No dlopen support on Windows"; * Function definitions (only when using libwine_port) */
-#ifndef HAVE_LSTAT -int lstat(const char *file_name, struct stat *buf); -#endif /* HAVE_LSTAT */ - #ifndef HAVE_READLINK int readlink( const char *path, char *buf, size_t size ); #endif /* HAVE_READLINK */ diff --git a/libs/port/Makefile.in b/libs/port/Makefile.in index 9b36c6c5a3b..392aa2ad713 100644 --- a/libs/port/Makefile.in +++ b/libs/port/Makefile.in @@ -1,6 +1,5 @@ STATICLIB = libwine_port.a
C_SRCS = \ - lstat.c \ readlink.c \ symlink.c diff --git a/libs/port/lstat.c b/libs/port/lstat.c deleted file mode 100644 index 346b412a8b1..00000000000 --- a/libs/port/lstat.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * lstat function - * - * Copyright 1996 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - */ - -#include "config.h" -#include "wine/port.h" - -#ifndef HAVE_LSTAT -int lstat(const char *file_name, struct stat *buf) -{ - return stat( file_name, buf ); -} -#endif /* HAVE_LSTAT */