blob: c5309a900a863ce71c5ef91138a22063cede5f01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$NetBSD: patch-aa,v 1.7 2009/12/11 00:11:11 abs Exp $
--- stop.c.orig 2003-03-30 20:05:53.000000000 +0000
+++ stop.c
@@ -35,17 +35,21 @@ int argc;
char *argv[];
{
unsigned long pid;
+#ifdef __linux__
FILE * pidfile;
char buf[80];
char procname[80];
+#endif
extern unsigned long lockpid();
extern char *make_lock_name();
extern void quit();
pid = lockpid(make_lock_name(monfile));
+#ifdef __linux__
procname[0] = 0;
buf[0] = 0;
pidfile = (FILE *) NULL;
+#endif
if( pid == 0 )
{
|