aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlex Samorukov <samm@os2.kiev.ua>2021-01-04 01:33:32 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2021-01-04 13:28:28 +0100
commitd4624d3468d389e372f103ec7aeec8db3d0195ba (patch)
tree244013b3f7c4a1efe507129049250b8bdfe02d36 /include
parent054493350124d36e531a26e982518696c038a6c1 (diff)
downloadbusybox-d4624d3468d389e372f103ec7aeec8db3d0195ba.tar.gz
Fix bb_setpgrp weapper on the FreeBSD
FreeBSD uses setpgrp(pid_t, pid_t) This patch makes crond.c and probably others compilable Signed-off-by: Alex Samorukov <samm@os2.kiev.ua> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/platform.h2
1 files changed, 1 insertions, 1 deletions
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