Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do the make distcheck command into the CMAKE_BINARY_TEST_DIR directory
[simgrid.git] / buildtools / Cmake / test_prog / prog_sem_init.c
index 9027c47..e822e64 100644 (file)
@@ -4,9 +4,12 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
 #include <semaphore.h>
 
-void main(void)
+int main(void)
 {
   sem_t s;
   if (sem_init(&s, 0, 0) != 0)