I am doing a little application in C and I want to define a struct. I have done this :
typedef struct {
ITEM element[TAILLE_TAMPON];
sem_t mutex, attendreVide, attendrePlein;
int ptEntree, ptSortie;
} TAMPON;
but I have an error when I built my project with ITEM Is it due to a problem with the include ?
- stdio.h
- stdlib.h
- time.h
- semaphore.h
- pthread.h
- "psleep.h"
"psleep.h" include "unistd.h"
Thank you for your help.