logo

utils-std

Collection of commonly available Unix tools
commit: 9d91b08586e10d010e2647f5cb0e2678e0e0375d
parent 4cfef864133f164256fae611eeb598c66d3f10a1
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 30 Jul 2024 14:53:55 +0200

Revert "configure: Add test for getentropy"

This reverts commit 5d644124be85b7449c992cce7f3ea67eae5ade15.

Diffstat:

Mconfigure5-----
Dconfigure.d/getentropy.c26--------------------------
2 files changed, 0 insertions(+), 31 deletions(-)

diff --git a/configure b/configure @@ -231,11 +231,6 @@ if check_conftest configure.d/posix_2024.h; then CFLAGS="${CFLAGS} -DHAS_POSIX_2024" fi -if ! check_conftest configure.d/getentropy.c; then - echo 'Disabling cmd/mktemp' - target_filter="${target_filter} -e cmd/mktemp." -fi - check_conftest configure.d/getopt_long.c && CFLAGS="${CFLAGS} -DHAS_GETOPT_LONG" echo diff --git a/configure.d/getentropy.c b/configure.d/getentropy.c @@ -1,26 +0,0 @@ -// utils-std: Collection of commonly available Unix tools -// SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me> -// SPDX-License-Identifier: MPL-2.0 - -#define _POSIX_C_SOURCE 202405L - -#ifndef HAS_POSIX_2024 -#define _DEFAULT_SOURCE // getentropy -#endif - -#include <unistd.h> // getentropy - -int -main(int argc, char *argv[]) -{ - // Silence unused warnings - (void)argc; - (void)argv; - -#define BUFLEN 42 - size_t buflen = BUFLEN; - char buf[BUFLEN] = ""; - int res = getentropy(buf, buflen); - - return res; -}