Fix build post r330299

This commit is contained in:
Brooks Davis 2018-03-02 23:31:55 +00:00
parent 6d0fe480a8
commit 75c1df31cf
2 changed files with 1 additions and 2 deletions

View File

@ -94,13 +94,11 @@ key_t msgkey, semkey, shmkey;
int maxloop = 1; int maxloop = 1;
#ifndef __FreeBSD__
union semun { union semun {
int val; /* value for SETVAL */ int val; /* value for SETVAL */
struct semid_ds *buf; /* buffer for IPC_{STAT,SET} */ struct semid_ds *buf; /* buffer for IPC_{STAT,SET} */
u_short *array; /* array for GETALL & SETALL */ u_short *array; /* array for GETALL & SETALL */
}; };
#endif
/* Writes an integer to a file. To be used from the body of the test /* Writes an integer to a file. To be used from the body of the test

View File

@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$");
#define _WANT_SYSVMSG_INTERNALS #define _WANT_SYSVMSG_INTERNALS
#include <sys/msg.h> #include <sys/msg.h>
#define _WANT_SYSVSEM_INTERNALS #define _WANT_SYSVSEM_INTERNALS
#define _WANT_SEMUN
#include <sys/sem.h> #include <sys/sem.h>
#define _WANT_SYSVSHM_INTERNALS #define _WANT_SYSVSHM_INTERNALS
#include <sys/shm.h> #include <sys/shm.h>