Index: usr.bin/primes/primes.c =================================================================== --- usr.bin/primes/primes.c +++ usr.bin/primes/primes.c @@ -61,6 +61,7 @@ * validation check: there are 664579 primes between 0 and 10^7 */ +#include #include #include #include @@ -99,6 +100,9 @@ int ch; char *p; + if (cap_enter() < 0 && errno != ENOSYS) + err(1, "cap_enter"); + while ((ch = getopt(argc, argv, "h")) != -1) switch (ch) { case 'h':