From 9ebd5a6aff73d70717f1d9a2f57767eae3eeb0c8 Mon Sep 17 00:00:00 2001 From: Gary Date: Tue, 23 Jul 2013 00:07:23 -0500 Subject: Add support for DragonFly BSD --- src/rc/rc-plugin.h | 2 +- src/rc/start-stop-daemon.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/rc') diff --git a/src/rc/rc-plugin.h b/src/rc/rc-plugin.h index f763c3e9..b4e40ab4 100644 --- a/src/rc/rc-plugin.h +++ b/src/rc/rc-plugin.h @@ -41,7 +41,7 @@ void rc_plugin_unload(void); void rc_plugin_run(RC_HOOK, const char *value); /* dlfunc defines needed to avoid ISO errors. FreeBSD has this right :) */ -#ifndef __FreeBSD__ +#if !defined(__FreeBSD__) && !defined(__DragonFly__) struct __dlfunc_arg { int __dlfunc_dummy; }; diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index bfa8852e..5576d49d 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -110,6 +110,7 @@ extern char **environ; #if !defined(SYS_ioprio_set) && defined(__NR_ioprio_set) # define SYS_ioprio_set __NR_ioprio_set #endif +#if !defined(__DragonFly__) static inline int ioprio_set(int which, int who, int ioprio) { #ifdef SYS_ioprio_set @@ -118,6 +119,7 @@ static inline int ioprio_set(int which, int who, int ioprio) return 0; #endif } +#endif static void free_schedulelist(void) -- cgit v1.2.3