From 168555048a8ab883d940b5947572905a0fbdfe82 Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Mon, 14 Oct 2019 03:05:01 +0300 Subject: [PATCH] Add getpgid() placeholder for Minix --- c/os_minix.c | 8 ++++++++ c/os_unix.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/c/os_minix.c b/c/os_minix.c index d97a384..7d0621b 100644 --- a/c/os_minix.c +++ b/c/os_minix.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -8,6 +9,13 @@ #include "scheme.h" +pid_t getpgid(pid_t pid) +{ + (void)pid; + errno = ENOSYS; + return (pid_t)-1; +} + char *get_exename(char *buf, size_t size) { (void)buf; diff --git a/c/os_unix.c b/c/os_unix.c index 6354ee2..17ec85f 100644 --- a/c/os_unix.c +++ b/c/os_unix.c @@ -19,6 +19,8 @@ #include "scheme.h" +pid_t getpgid(pid_t pid); + static value_t dirsym; struct fltype *dirtype;