I am trying to program with semaphores and was told that I should use sem.h. When I compile, I get the error: "sys/sem.h: No such file or directory". How can I fix my problem?
#include <stdio.h>
#include <sys/sem.h>
int main() {
printf("I am alive \n");
getchar();
return 0;
}