Add support for DragonFly BSD

This commit is contained in:
Gary
2013-07-23 00:07:23 -05:00
committed by William Hubbs
parent bee59c68c5
commit 9ebd5a6aff
5 changed files with 31 additions and 4 deletions

View File

@@ -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)