mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 12:04:39 +08:00
Remove lrand48 checks and support
lrand48 is no longer used.
This commit is contained in:
parent
50e2a8dd72
commit
7ea396ab3f
|
@ -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(gettext libintl.h HAVE_GETTEXT)
|
||||
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
|
||||
check_cxx_symbol_exists(mkostemp "stdlib.h;unistd.h" HAVE_MKOSTEMP)
|
||||
set(HAVE_CURSES_H ${CURSES_HAVE_CURSES_H})
|
||||
|
|
|
@ -43,9 +43,6 @@
|
|||
/* Define to 1 if you have the `killpg' function. */
|
||||
#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. */
|
||||
#cmakedefine HAVE_MKOSTEMP 1
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// This file only contains fallback implementations of functions which have been found to be missing
|
||||
// or broken by the configuration scripts.
|
||||
//
|
||||
// Many of these functions are more or less broken and incomplete. lrand28_r internally uses the
|
||||
// regular (bad) rand_r function, the gettext function doesn't actually do anything, etc.
|
||||
// Many of these functions are more or less broken and incomplete.
|
||||
#include "config.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);
|
||||
#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
|
||||
int futimes(int fd, const struct timeval *times);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user