From: Nadav Har'El <n...@scylladb.com> Committer: Nadav Har'El <n...@scylladb.com> Branch: master
runtime.c: avoid explicit "extern C" when header files are available Signed-off-by: Nadav Har'El <n...@scylladb.com> --- diff --git a/runtime.cc b/runtime.cc --- a/runtime.cc +++ b/runtime.cc @@ -58,6 +58,8 @@ #include <grp.h> #include <unordered_map> #include <api/sys/prctl.h> +#include <sys/wait.h> +#include <pty.h> #define __LC_LAST 13 @@ -561,15 +563,13 @@ char *tmpnam_r(char *s) return s ? tmpnam(s) : NULL; } -extern "C" pid_t wait3(int *status, int options, struct rusage *usage) { WARN_STUBBED(); errno = ECHILD; return -1; } -extern "C" pid_t wait4(pid_t pid, int *status, int options, struct rusage *usage) { WARN_STUBBED(); @@ -591,7 +591,6 @@ int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid) return -1; } -extern "C" int openpty(int *amaster, int *aslave, char *name, const struct termios *termp, const struct winsize *winp) @@ -601,7 +600,6 @@ int openpty(int *amaster, int *aslave, char *name, return -1; } -extern "C" pid_t forkpty(int *amaster, char *name, const struct termios *termp, const struct winsize *winp) -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.