X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=lib%2Fpidfile.c;h=4a7276de3904a99f68b4f8cc2300d3e4d5596057;hp=2dea70b9ceed5f4ac617501fe329ffbff0dea830;hb=0e945413315c9d15a3eb013fa3731dd978a8c7b8;hpb=c15e8a96bf7e45adf750b7a36b0e8446ea049468 diff --git a/lib/pidfile.c b/lib/pidfile.c index 2dea70b9..4a7276de 100644 --- a/lib/pidfile.c +++ b/lib/pidfile.c @@ -27,6 +27,7 @@ #include "system.h" +#ifndef HAVE_MINGW /* read_pid * * Reads the specified pidfile and returns the read pid. @@ -68,6 +69,7 @@ int check_pid (char *pidfile) errno = 0; if (kill(pid, 0) && errno == ESRCH) return(0); +#endif return pid; } @@ -127,4 +129,4 @@ int remove_pid (char *pidfile) { return unlink (pidfile); } - +#endif