#ifndef __HACKED_SYS_SEM_INCLUDED
#define __HACKED_SYS_SEM_INCLUDED

#ifdef __BUILDING_LIBS
#define sembuf		__sembuf_wrong
#endif

#include_next <sys/sem.h>

#ifdef __BUILDING_LIBS
#undef sembuf
struct sembuf {
    unsigned short sem_num ;	/* This is what it should be */
    short sem_op ;
    short sem_flg ;
} ;
#endif

#endif
