From 0f38ee0e9c8fcac3c0ea12b21cc210f6befb8564 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Thu, 19 Oct 2023 18:59:02 +0100 Subject: [PATCH] remove PREINIT_USE_LIBC option as it is now the only option --- pkgs/preinit/Makefile | 2 +- pkgs/preinit/preinit.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/preinit/Makefile b/pkgs/preinit/Makefile index 8d09ce0..7eeacf9 100644 --- a/pkgs/preinit/Makefile +++ b/pkgs/preinit/Makefile @@ -1,4 +1,4 @@ -CFLAGS+=-Os -DPREINIT_USE_LIBC -fno-stack-protector -fpic -fPIC +CFLAGS+=-Os -fno-stack-protector -fpic -fPIC LDFLAGS=-static preinit: preinit.o parseopts.o diff --git a/pkgs/preinit/preinit.c b/pkgs/preinit/preinit.c index 7b95c55..cd3f99a 100644 --- a/pkgs/preinit/preinit.c +++ b/pkgs/preinit/preinit.c @@ -1,14 +1,11 @@ -#ifdef PREINIT_USE_LIBC #include #include #include #include #include #include -#else -#include -#endif -#include + +#include /* for COMMAND_LINE_SIZE */ void parseopts(char * cmdline, char **root, char **rootfstype);