Hi,
I'm learning how to use semaphore under linux, but I'm having an error when I declare a struct I never had under windows.
error: redefinition of 'struct sembuf'
I searched the linux board but I can't find a solution for this error.Code:typedef struct sembuf { unsigned short sem_num; short sem_op; short sem_flg; }sembuf; int main() { sembuf* sbuf; }
Some help would be appreciated.