diff options
author | Jonas 'Sortie' Termansen <sortie@maxsi.org> | 2024-11-01 21:18:23 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2025-02-28 13:24:50 +0000 |
commit | a3177d19fb23df50419bd44d945090bb4fcc8891 (patch) | |
tree | 7a1111da92ca0b9cd4c29dd41c368427ad6a3763 | |
parent | 8cdf110a115c971f3184bbd30f515fd2cd6f72ef (diff) | |
download | binutils-a3177d19fb23df50419bd44d945090bb4fcc8891.zip binutils-a3177d19fb23df50419bd44d945090bb4fcc8891.tar.gz binutils-a3177d19fb23df50419bd44d945090bb4fcc8891.tar.bz2 |
Remove unnecessary non-standard & unportable inclusions.
<memory.h> is not needed and not standardized and is just an alias for
<string.h>.
<sys/param.h> is not needed and not standardized and contains a kitchen
sink of various unportable definitions not agreed upon and best done
manually or through other headers.
These fixes are needed to compile binutils on Sortix and other operating
systems with a strict POSIX.1-2024 libc without obsolete features.
Signed-off-by: Jonas 'Sortie' Termansen <sortie@maxsi.org>
-rw-r--r-- | binutils/testsuite/gentestdlls.c | 1 | ||||
-rw-r--r-- | libctf/ctf-create.c | 1 | ||||
-rw-r--r-- | libctf/ctf-impl.h | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/binutils/testsuite/gentestdlls.c b/binutils/testsuite/gentestdlls.c index 805c648..df60b1e 100644 --- a/binutils/testsuite/gentestdlls.c +++ b/binutils/testsuite/gentestdlls.c @@ -25,7 +25,6 @@ See: https://www.ecma-international.org/publications/files/ECMA-ST/ECMA-335.pdf */ -#include <memory.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> diff --git a/libctf/ctf-create.c b/libctf/ctf-create.c index a4d8e7c..6d2479c 100644 --- a/libctf/ctf-create.c +++ b/libctf/ctf-create.c @@ -18,7 +18,6 @@ <http://www.gnu.org/licenses/>. */ #include <ctf-impl.h> -#include <sys/param.h> #include <string.h> #include <unistd.h> diff --git a/libctf/ctf-impl.h b/libctf/ctf-impl.h index b40c867..2d191b0 100644 --- a/libctf/ctf-impl.h +++ b/libctf/ctf-impl.h @@ -22,7 +22,6 @@ #include "config.h" #include <errno.h> -#include <sys/param.h> #include "ctf-decls.h" #include <ctf-api.h> #include "ctf-sha1.h" |