/* IBM OS/2 port specific stuff */

#define INCL_DOSMODULEMGR     /* Module Manager values */
#define INCL_DOSSEMAPHORES      /* Semaphore values */
#define INCL_DOSDATETIME     /* Timer support    */
#define INCL_DOSERRORS        /* Error values */
// #define INCL_EXAPIS
#include <os2.h>

/*
 *	IPC defines
 */
#undef HAVE_UNION_SEMUN
#define HAVE_UNION_SEMUN 1
#define EACCESS 2048
#define EIDRM 4096
#define SETALL 8192
#define GETNCNT 16384
#define GETVAL 65536
#define SETVAL 131072
#define GETPID 262144
/*
 *	Shared memory
 */
/*
 *	Semaphores
 */
union semun
{
	int			val;
	struct semid_ds *buf;
	unsigned short *array;
};

