logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: 29bcecfe0cf7ee999aa592c2d0da02358a357987
parent d5b13f318f9028e67e6e85f479e612836dcd88df
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 13 Jul 2023 02:57:10 +0200

cmd/nproc: _SC_NPROCESSORS* isn't in POSIX yet

Diffstat:

Mcmd/nproc.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/nproc.c b/cmd/nproc.c @@ -2,7 +2,7 @@ // SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me> // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only -#define _POSIX_C_SOURCE 200809L +#define _DEFAULT_SOURCE // _SC_NPROCESSORS_CONF #include <stdio.h> // printf #include <unistd.h> // sysconf, getopt, opt*