Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert the sem_open 'fix'
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 9 Jun 2015 16:43:23 +0000 (18:43 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 9 Jun 2015 16:43:23 +0000 (18:43 +0200)
buildtools/Cmake/test_prog/prog_sem_open.c

index e657cc3..8a1dfb6 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");