remove unused futimes check

This commit is contained in:
Aaron Gyes 2021-09-28 21:59:23 -07:00
parent 0b3d3de9bf
commit 3fd2da951e
4 changed files with 0 additions and 15 deletions

View file

@ -83,7 +83,6 @@ check_cxx_symbol_exists(flock sys/file.h HAVE_FLOCK)
# futimens is new in OS X 10.13 but is a weak symbol.
# Don't assume it exists just because we can link - it may be null.
check_cxx_symbol_exists(futimens sys/stat.h HAVE_FUTIMENS)
check_cxx_symbol_exists(futimes sys/time.h HAVE_FUTIMES)
check_cxx_symbol_exists(getifaddrs ifaddrs.h HAVE_GETIFADDRS)
check_cxx_symbol_exists(getpwent pwd.h HAVE_GETPWENT)
check_cxx_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE)

View file

@ -25,9 +25,6 @@
/* Define to 1 if you have the `futimens' function. */
#cmakedefine HAVE_FUTIMENS 1
/* Define to 1 if you have the `futimes' function. */
#cmakedefine HAVE_FUTIMES 1
/* Define to 1 if you have the `getifaddrs' function. */
#cmakedefine HAVE_GETIFADDRS 1

View file

@ -182,13 +182,6 @@ size_t wcslcpy(wchar_t *dst, const wchar_t *src, size_t siz) {
}
#endif
#ifndef HAVE_FUTIMES
int futimes(int fd, const struct timeval *times) {
errno = ENOSYS;
return -1;
}
#endif
#if HAVE_GETTEXT
char *fish_gettext(const char *msgid) { return gettext(msgid); }

View file

@ -122,10 +122,6 @@ wchar_t *wcsndup(const wchar_t *in, size_t c);
size_t wcslcpy(wchar_t *dst, const wchar_t *src, size_t siz);
#endif
#ifndef HAVE_FUTIMES
int futimes(int fd, const struct timeval *times);
#endif
// autoconf may fail to detect gettext (645), so don't define a function call gettext or we'll get
// build errors.