Add support for DragonFly BSD
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user