Package: procps Version: 1:3.3.3-1 Severity: important Tags: patch User: debian-...@lists.debian.org Usertags: kfreebsd
Hi, the current version fails to build on GNU/kFreeBSD. It needs small tweaks, see bellow. Petr --- proc/version.c +++ proc/version.c @@ -69,10 +69,10 @@ if ((version_string_depth < 2) || /* Non-standard for all known kernels */ ((version_string_depth < 3) && (x < 3))) /* Non-standard for 2.x.x kernels */ -#ifdef __linux__ fprintf(stderr, /* *very* unlikely to happen by accident */ "Non-standard uts for running kernel:\n" "release %s=%d.%d.%d gives version code %d\n", +#ifdef __linux__ uts.release, x, y, z, LINUX_VERSION(x,y,z)); #else "%s=%d.%d.%d gives version code %d\n", --- testsuite/ps.test/test-schedbatch.c +++ testsuite/ps.test/test-schedbatch.c @@ -25,9 +25,11 @@ nice = atoi(argv[1]); } sp.sched_priority = 0; +#ifdef SCHED_BATCH if (sched_setscheduler(0, SCHED_BATCH, &sp)) { perror("sched_setscheduler(0,SCHED_BATCH,{.sched_priority=0}"); } +#endif if (setpriority(PRIO_PROCESS, 0, nice) || errno) { (void)snprintf(msg, sizeof(msg), "setpriority(PRIO_PROCESS, 0, %d)", nice); -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org