More checks for missing functions.
[oweals/tinc.git] / lib / pidfile.c
index 2dea70b9ceed5f4ac617501fe329ffbff0dea830..4a7276de3904a99f68b4f8cc2300d3e4d5596057 100644 (file)
@@ -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