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