summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Makefile2
-rw-r--r--src/plugins/pid.c9
2 files changed, 3 insertions, 8 deletions
diff --git a/src/plugins/Makefile b/src/plugins/Makefile
index f576995f6..bac69f70f 100644
--- a/src/plugins/Makefile
+++ b/src/plugins/Makefile
@@ -14,13 +14,11 @@ txt sql all: $(PLUGINS)
%.$(PLUGINEXT): %.c
$(CC) $(CFLAGS) -shared -o ../../plugins/$@ $<
- @touch $@
sig.$(PLUGINEXT): sig.c
$(CC) $(CFLAGS) -shared -o ../../plugins/$@ $< \
../common/obj/showmsg.o ../common/obj/utils.o \
../common/obj/minimalloc.o
- @touch $@
gui.$(PLUGINEXT): ../../plugins/gui.conf
upnp.$(PLUGINEXT): ../../plugins/upnp.conf
diff --git a/src/plugins/pid.c b/src/plugins/pid.c
index 2fdd2570c..48013e3eb 100644
--- a/src/plugins/pid.c
+++ b/src/plugins/pid.c
@@ -2,13 +2,10 @@
#include <stdio.h>
#include <string.h>
-#ifndef _WIN32
- #include <unistd.h>
-#endif
-#ifdef MINGW
- #include <process.h>
- #include <io.h>
+#if !defined _WIN32 || defined MINGW
+ #include <unistd.h> // getpid(), unlink()
#else
+ #include <windows.h>
#define getpid GetCurrentProcessId
#endif