diff --git a/contrib/netbsd-tests/kernel/t_sysv.c b/contrib/netbsd-tests/kernel/t_sysv.c index 638f59c498f3..8d1e32ed21ee 100644 --- a/contrib/netbsd-tests/kernel/t_sysv.c +++ b/contrib/netbsd-tests/kernel/t_sysv.c @@ -94,13 +94,11 @@ key_t msgkey, semkey, shmkey; int maxloop = 1; -#ifndef __FreeBSD__ union semun { int val; /* value for SETVAL */ struct semid_ds *buf; /* buffer for IPC_{STAT,SET} */ u_short *array; /* array for GETALL & SETALL */ }; -#endif /* Writes an integer to a file. To be used from the body of the test diff --git a/usr.bin/ipcrm/ipcrm.c b/usr.bin/ipcrm/ipcrm.c index 2ca65a3009e6..7f132c182a07 100644 --- a/usr.bin/ipcrm/ipcrm.c +++ b/usr.bin/ipcrm/ipcrm.c @@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$"); #define _WANT_SYSVMSG_INTERNALS #include #define _WANT_SYSVSEM_INTERNALS +#define _WANT_SEMUN #include #define _WANT_SYSVSHM_INTERNALS #include