Fixed missing union semun definition

This commit is contained in:
blt
2000-11-09 11:12:54 +00:00
parent af99913d34
commit f150f213bf
+10
View File
@@ -30,6 +30,16 @@
#include "lcd_sem.h"
#ifdef _SEM_SEMUN_UNDEFINED
/* according to X/OPEN we have to define it ourselves */
union semun {
int val; /* value for SETVAL */
struct semid_ds *buf; /* buffer for IPC_STAT, IPC_SET */
unsigned short int *array; /* array for GETALL, SETALL */
struct seminfo *__buf; /* buffer for IPC_INFO */
};
#endif
#define SEMAPHORE "portctrl"
#define SEMKEY 0x706f7274 /* semaphore key */
#define SEMCOUNT 1 /* number of semaphores to create */