[PATCH] Remove unnecessary non-standard & unportable inclusions.

Jonas 'Sortie' Termansen sortie@maxsi.org
Fri Nov 1 20:26:59 GMT 2024


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

(I have begun the FSF copyright assignment process, waiting for them to
get back to me, you might prefer to just wait for it go through before
merging?  Also whoops forgot the [PATCH] on my previous email)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Remove-unnecessary-non-standard-unportable-inclusion.patch
Type: text/x-patch
Size: 1843 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20241101/fa1cfa24/attachment.bin>


More information about the Binutils mailing list