diff options
author | Adam Heath <doogie@debian.org> | 2003-04-15 16:34:28 +0000 |
---|---|---|
committer | Adam Heath <doogie@debian.org> | 2003-04-15 16:34:28 +0000 |
commit | eeb28765a5e09a0e89f8c5a86a1a7a6e41a9ef71 (patch) | |
tree | 02d7ea819532be2eff080af2b96944694824a072 /utils | |
parent | 3dc5598e85bc5e0f1f77bf0798b4398cfaf275b4 (diff) | |
download | dpkg-eeb28765a5e09a0e89f8c5a86a1a7a6e41a9ef71.tar.gz |
Add netbsd support, and support hypenated values in dpkg-architecture.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/start-stop-daemon.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c index 9275463ab..5ee282b7a 100644 --- a/utils/start-stop-daemon.c +++ b/utils/start-stop-daemon.c @@ -34,6 +34,8 @@ # define OShpux #elif defined(__FreeBSD__) # define OSFreeBSD +#elif defined(__NetBSD__) +# define OSNetBSD #else # error Unknown architecture - cannot build start-stop-daemon #endif @@ -45,7 +47,7 @@ # include <ps.h> #endif -#if defined(OSOpenBSD) || defined(OSFreeBSD) +#if defined(OSOpenBSD) || defined(OSFreeBSD) || defined(OSNetBSD) #include <sys/param.h> #include <sys/user.h> #include <sys/proc.h> @@ -677,7 +679,7 @@ check(pid_t pid) { #if defined(OSLinux) || defined(OShpux) if (execname && !pid_is_exec(pid, &exec_stat)) -#elif defined(OSHURD) || defined(OSFreeBSD) +#elif defined(OSHURD) || defined(OSFreeBSD) || defined(OSNetBSD) /* I will try this to see if it works */ if (execname && !pid_is_cmd(pid, execname)) #endif @@ -771,7 +773,7 @@ do_procinit(void) #endif /* OSHURD */ -#if defined(OSOpenBSD) || defined(OSFreeBSD) +#if defined(OSOpenBSD) || defined(OSFreeBSD) || defined(OSNetBSD) static int pid_is_cmd(pid_t pid, const char *name) { |