diff options
author | Bruno Haible <bruno@clisp.org> | 2020-05-30 15:15:55 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-05-30 15:15:55 +0200 |
commit | 1060fb49e1f401426ee4c1e07305d4a7b7673100 (patch) | |
tree | d6a9964b7c0bd689cef0d7e2a0b0d03a1000cfde /lib | |
parent | eaefb0474f1207bf4efa441e8589404a03539232 (diff) | |
download | gnulib-1060fb49e1f401426ee4c1e07305d4a7b7673100.tar.gz |
unistd: Remove conflicting declaration of getrandom().
* lib/unistd.in.h (getrandom): Remove declaration.
* m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
declared.
(gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
HAVE_GETRANDOM.
* modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
HAVE_GETRANDOM.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unistd.in.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 4a0d6655af..906f806c3e 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -1030,24 +1030,6 @@ _GL_WARN_ON_USE (getpass, "getpass is unportable - " #endif -#if @GNULIB_GETRANDOM@ -/* Fill a buffer with random bytes. */ -# if !@HAVE_GETRANDOM@ -_GL_FUNCDECL_SYS (getrandom, int, (void *buffer, size_t length, - unsigned int flags)); -# endif -_GL_CXXALIAS_SYS (getrandom, int, (void *buffer, size_t length, - unsigned int flags)); -_GL_CXXALIASWARN (getrandom); -#elif defined GNULIB_POSIXCHECK -# undef getrandom -# if HAVE_RAW_DECL_GETRANDOM -_GL_WARN_ON_USE (getrandom, "getrandom is unportable - " - "use gnulib module getrandom for portability"); -# endif -#endif - - #if @GNULIB_GETUSERSHELL@ /* Return the next valid login shell on the system, or NULL when the end of the list has been reached. */ |