Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert the sem_open 'fix'
[simgrid.git] / buildtools / Cmake / test_prog / prog_sem_open.c
index e657cc3f0de4b7954f59cea7d80b47ab66a632ea..8a1dfb609fb891effa99442db1759f0756fee5c9 100644 (file)
 #endif
 
 int main(void) {
+#ifdef WIN32
+  int s;
+#else
   sem_t * s;
+#endif
    s = sem_open("/0", O_CREAT, 0644, 10);
    if (s == SEM_FAILED){
 //     printf("sem_open failed\n");