Use right piece of code for FreeBSD.
Sponsored by: DARPA, AFRL Sponsored by: HEIF5
This commit is contained in:
parent
c82bffaca4
commit
d8002ecb20
@ -125,7 +125,7 @@ ATF_TC_BODY(nice_priority, tc)
|
|||||||
if (pid == 0) {
|
if (pid == 0) {
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
#ifdef __FreeBSD__
|
#ifdef __NetBSD__
|
||||||
pri = getpriority(PRIO_PROCESS, 0);
|
pri = getpriority(PRIO_PROCESS, 0);
|
||||||
#else
|
#else
|
||||||
pri2 = getpriority(PRIO_PROCESS, 0);
|
pri2 = getpriority(PRIO_PROCESS, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user