mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Remove lrand48 checks and support
lrand48 is no longer used.
This commit is contained in:
parent
50e2a8dd72
commit
7ea396ab3f
4 changed files with 1 additions and 22 deletions
|
@ -80,7 +80,6 @@ check_cxx_symbol_exists(getpwent pwd.h HAVE_GETPWENT)
|
||||||
check_cxx_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE)
|
check_cxx_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE)
|
||||||
check_cxx_symbol_exists(gettext libintl.h HAVE_GETTEXT)
|
check_cxx_symbol_exists(gettext libintl.h HAVE_GETTEXT)
|
||||||
check_cxx_symbol_exists(killpg "sys/types.h;signal.h" HAVE_KILLPG)
|
check_cxx_symbol_exists(killpg "sys/types.h;signal.h" HAVE_KILLPG)
|
||||||
check_cxx_symbol_exists(lrand48_r stdlib.h HAVE_LRAND48_R)
|
|
||||||
# mkostemp is in stdlib in glibc and FreeBSD, but unistd on macOS
|
# mkostemp is in stdlib in glibc and FreeBSD, but unistd on macOS
|
||||||
check_cxx_symbol_exists(mkostemp "stdlib.h;unistd.h" HAVE_MKOSTEMP)
|
check_cxx_symbol_exists(mkostemp "stdlib.h;unistd.h" HAVE_MKOSTEMP)
|
||||||
set(HAVE_CURSES_H ${CURSES_HAVE_CURSES_H})
|
set(HAVE_CURSES_H ${CURSES_HAVE_CURSES_H})
|
||||||
|
|
|
@ -43,9 +43,6 @@
|
||||||
/* Define to 1 if you have the `killpg' function. */
|
/* Define to 1 if you have the `killpg' function. */
|
||||||
#cmakedefine HAVE_KILLPG 1
|
#cmakedefine HAVE_KILLPG 1
|
||||||
|
|
||||||
/* Define to 1 if you have the `lrand48_r' function. */
|
|
||||||
#cmakedefine HAVE_LRAND48_R 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `mkostemp' function. */
|
/* Define to 1 if you have the `mkostemp' function. */
|
||||||
#cmakedefine HAVE_MKOSTEMP 1
|
#cmakedefine HAVE_MKOSTEMP 1
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// This file only contains fallback implementations of functions which have been found to be missing
|
// This file only contains fallback implementations of functions which have been found to be missing
|
||||||
// or broken by the configuration scripts.
|
// or broken by the configuration scripts.
|
||||||
//
|
//
|
||||||
// Many of these functions are more or less broken and incomplete. lrand28_r internally uses the
|
// Many of these functions are more or less broken and incomplete.
|
||||||
// regular (bad) rand_r function, the gettext function doesn't actually do anything, etc.
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
// IWYU likes to recommend adding term.h when we want ncurses.h.
|
// IWYU likes to recommend adding term.h when we want ncurses.h.
|
||||||
|
|
|
@ -126,22 +126,6 @@ wchar_t *wcsndup(const wchar_t *in, size_t c);
|
||||||
size_t wcslcpy(wchar_t *dst, const wchar_t *src, size_t siz);
|
size_t wcslcpy(wchar_t *dst, const wchar_t *src, size_t siz);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0
|
|
||||||
// These are not currently used.
|
|
||||||
#ifndef HAVE_LRAND48_R
|
|
||||||
/// Data structure for the lrand48_r fallback implementation.
|
|
||||||
struct drand48_data {
|
|
||||||
unsigned int seed;
|
|
||||||
};
|
|
||||||
|
|
||||||
/// Fallback implementation of lrand48_r. Internally uses rand_r, so it is pretty weak.
|
|
||||||
int lrand48_r(struct drand48_data *buffer, long int *result);
|
|
||||||
|
|
||||||
/// Fallback implementation of srand48_r, the seed function for lrand48_r.
|
|
||||||
int srand48_r(long int seedval, struct drand48_data *buffer);
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef HAVE_FUTIMES
|
#ifndef HAVE_FUTIMES
|
||||||
int futimes(int fd, const struct timeval *times);
|
int futimes(int fd, const struct timeval *times);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue