Fixes 298 where `make allyesconfig` failed with an undefined reference
to xfork().
---
 lib/portability.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
From d6996e81920b6630dacc4fe9de3bcde8339bc71c Mon Sep 17 00:00:00 2001
From: Elliott Hughes <[email protected]>
Date: Wed, 27 Oct 2021 09:13:18 -0700
Subject: [PATCH] xfork: fix #if.

Fixes 298 where `make allyesconfig` failed with an undefined reference
to xfork().
---
 lib/portability.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/portability.c b/lib/portability.c
index 776b1fb9..65fc8865 100644
--- a/lib/portability.c
+++ b/lib/portability.c
@@ -19,7 +19,7 @@
 // re-exec self without depending on the filesystem, I'm all ears),
 // and use the arguments to signal reentry.
 
-#if CFG_TOYBOX_FORK
+#ifdef CFG_TOYBOX_FORK
 pid_t xfork(void)
 {
   pid_t pid = fork();
-- 
2.33.0.1079.g6e70778dc9-goog

_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to