[git commit] Fix bb_setpgrp weapper on the FreeBSD
Denys Vlasenko
vda.linux at googlemail.com
Mon Jan 4 12:28:28 UTC 2021
commit: https://git.busybox.net/busybox/commit/?id=d4624d3468d389e372f103ec7aeec8db3d0195ba
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
FreeBSD uses setpgrp(pid_t, pid_t)
This patch makes crond.c and probably others compilable
Signed-off-by: Alex Samorukov <samm at os2.kiev.ua>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
include/platform.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/platform.h b/include/platform.h
index 085387fd8..d991f3140 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -319,7 +319,7 @@ typedef unsigned smalluint;
#endif
/* Define bb_setpgrp */
-#if defined(__digital__) && defined(__unix__)
+#if (defined(__digital__) && defined(__unix__)) || defined(__FreeBSD__)
/* use legacy setpgrp(pid_t, pid_t) for now. move to platform.c */
# define bb_setpgrp() do { pid_t __me = getpid(); setpgrp(__me, __me); } while (0)
#else
More information about the busybox-cvs
mailing list