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>
This commit is contained in:
Jonas 'Sortie' Termansen
2024-11-01 21:18:23 +01:00
committed by Nick Alcock
parent 8cdf110a11
commit a3177d19fb
3 changed files with 0 additions and 3 deletions

View 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>

View File

@@ -18,7 +18,6 @@
<http://www.gnu.org/licenses/>. */
#include <ctf-impl.h>
#include <sys/param.h>
#include <string.h>
#include <unistd.h>

View 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"