projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use CPPFLAGS, LDFLAGS and LIBS as appropiate.
[tinc]
/
lib
/
pidfile.c
diff --git
a/lib/pidfile.c
b/lib/pidfile.c
index
250f67b
..
368dad4
100644
(file)
--- a/
lib/pidfile.c
+++ b/
lib/pidfile.c
@@
-25,17
+25,9
@@
* First version (v0.2) released
*/
* First version (v0.2) released
*/
-#include <stdio.h>
-#include <unistd.h>
-#include <sys/stat.h>
-#include <sys/file.h>
-#include <string.h>
-#include <errno.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <signal.h>
-#include <fcntl.h>
+#include "system.h"
+#ifndef HAVE_MINGW
/* read_pid
*
* Reads the specified pidfile and returns the read pid.
/* read_pid
*
* Reads the specified pidfile and returns the read pid.
@@
-136,4
+128,4
@@
int remove_pid (char *pidfile)
{
return unlink (pidfile);
}
{
return unlink (pidfile);
}
-
+#endif