From 0dbbc611d01997402ac8f7b89b4062f328f8577e Mon Sep 17 00:00:00 2001 From: Moeyoo <21700310+Moeyoo@users.noreply.github.com> Date: Tue, 30 Jul 2019 16:06:33 +0800 Subject: [PATCH] Fix compiling error on Alpine On latest Alpine, declaration of 'daemon' is "int daemon(int, int);" --- src/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.c b/src/common.c index 2170867..679eab8 100644 --- a/src/common.c +++ b/src/common.c @@ -58,7 +58,7 @@ const unsigned char raw_header[RAW_HDR_LEN] = { 0x10, 0xd1, 0x9e, 0x00 }; /* daemon(3) exists only in 4.4BSD or later, and in GNU libc */ #if !defined(ANDROID) && !defined(WINDOWS32) && !(defined(BSD) && (BSD >= 199306)) && !defined(__GLIBC__) -static int daemon(int nochdir, int noclose) +int daemon(int nochdir, int noclose) { int fd, i;