]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove unnecessary non-standard & unportable inclusions.
authorJonas 'Sortie' Termansen <sortie@maxsi.org>
Fri, 1 Nov 2024 20:18:23 +0000 (21:18 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 28 Feb 2025 13:24:50 +0000 (13:24 +0000)
<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>
binutils/testsuite/gentestdlls.c
libctf/ctf-create.c
libctf/ctf-impl.h

index 805c64822b1e91767fc1cd9b42559646cc1ba70f..df60b1e341e2891bffeec77c27835f5eca6c2dea 100644 (file)
@@ -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>
index a4d8e7c25284686511be23c1c0be3cc5050663d3..6d2479c8cca04883d031fca52638ab4fabe156ce 100644 (file)
@@ -18,7 +18,6 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <ctf-impl.h>
-#include <sys/param.h>
 #include <string.h>
 #include <unistd.h>
 
index b40c8679c4a2318e77d535580bc5131ad9c0178d..2d191b0a5c9b0fbc90a19e625116f08571622b9c 100644 (file)
@@ -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"