Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
errno.h and sys/stat/h are always here nowadays
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 5 Mar 2016 00:44:37 +0000 (01:44 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 5 Mar 2016 00:50:58 +0000 (01:50 +0100)
CMakeLists.txt
src/portable.h
src/xbt/xbt_os_thread.c
tools/cmake/PrintArgs.cmake
tools/cmake/src/internal_config.h.in

index 1a646b6..6f9547e 100644 (file)
@@ -284,10 +284,8 @@ endif()
 
 CHECK_INCLUDE_FILES("stdlib.h;stdarg.h;string.h;float.h" STDC_HEADERS)
 CHECK_INCLUDE_FILE("valgrind/valgrind.h" HAVE_VALGRIND_VALGRIND_H)
 
 CHECK_INCLUDE_FILES("stdlib.h;stdarg.h;string.h;float.h" STDC_HEADERS)
 CHECK_INCLUDE_FILE("valgrind/valgrind.h" HAVE_VALGRIND_VALGRIND_H)
-CHECK_INCLUDE_FILE("sys/stat.h" HAVE_SYS_STAT_H)
 CHECK_INCLUDE_FILE("sys/ptrace.h" HAVE_SYS_PTRACE_H)
 CHECK_INCLUDE_FILE("windows.h" HAVE_WINDOWS_H)
 CHECK_INCLUDE_FILE("sys/ptrace.h" HAVE_SYS_PTRACE_H)
 CHECK_INCLUDE_FILE("windows.h" HAVE_WINDOWS_H)
-CHECK_INCLUDE_FILE("errno.h" HAVE_ERRNO_H)
 CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H)
 CHECK_INCLUDE_FILE("execinfo.h" HAVE_EXECINFO_H)
 CHECK_INCLUDE_FILE("signal.h" HAVE_SIGNAL_H)
 CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H)
 CHECK_INCLUDE_FILE("execinfo.h" HAVE_EXECINFO_H)
 CHECK_INCLUDE_FILE("signal.h" HAVE_SIGNAL_H)
@@ -998,9 +996,7 @@ message("HAVE_POSIX_GETTIME ..........: ${HAVE_POSIX_GETTIME}")
 message("")
 message("STDC_HEADERS ................: ${STDC_HEADERS}")
 message("HAVE_VALGRIND_VALGRIND_H ....: ${HAVE_VALGRIND_VALGRIND_H}")
 message("")
 message("STDC_HEADERS ................: ${STDC_HEADERS}")
 message("HAVE_VALGRIND_VALGRIND_H ....: ${HAVE_VALGRIND_VALGRIND_H}")
-message("HAVE_SYS_STAT_H .............: ${HAVE_SYS_STAT_H}")
 message("HAVE_WINDOWS_H ..............: ${HAVE_WINDOWS_H}")
 message("HAVE_WINDOWS_H ..............: ${HAVE_WINDOWS_H}")
-message("HAVE_ERRNO_H ................: ${HAVE_ERRNO_H}")
 message("HAVE_UNISTD_H ...............: ${HAVE_UNISTD_H}")
 message("HAVE_EXECINFO_H .............: ${HAVE_EXECINFO_H}")
 message("HAVE_SIGNAL_H ...............: ${HAVE_SIGNAL_H}")
 message("HAVE_UNISTD_H ...............: ${HAVE_UNISTD_H}")
 message("HAVE_EXECINFO_H .............: ${HAVE_EXECINFO_H}")
 message("HAVE_SIGNAL_H ...............: ${HAVE_SIGNAL_H}")
index 487a6f1..f610526 100644 (file)
 #include <stdarg.h>
 #include <stdio.h>
 
 #include <stdarg.h>
 #include <stdio.h>
 
-#ifdef HAVE_ERRNO_H
-#  include <errno.h>
-#endif
-
 #ifdef HAVE_UNISTD_H
 #  include <unistd.h>
 #endif
 #ifdef HAVE_UNISTD_H
 #  include <unistd.h>
 #endif
   #define S_IWGRP 0
 #endif
 
   #define S_IWGRP 0
 #endif
 
-#ifdef HAVE_SYS_STAT_H
-#  include <sys/stat.h>
-#endif
-
 #ifndef O_BINARY
 #  define O_BINARY 0
 #endif
 #ifndef O_BINARY
 #  define O_BINARY 0
 #endif
index e530de4..22f9a8e 100644 (file)
@@ -8,6 +8,8 @@
 /* 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. */
 
 /* 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 <errno.h>
+
 #if defined(WIN32)
 #elif defined(__MACH__) && defined(__APPLE__)
 #include <stdint.h>
 #if defined(WIN32)
 #elif defined(__MACH__) && defined(__APPLE__)
 #include <stdint.h>
index ac71978..59f11f5 100644 (file)
@@ -19,9 +19,7 @@
   message("")
   message("STDC_HEADERS ................: ${STDC_HEADERS}")
   message("HAVE_VALGRIND_VALGRIND_H ....: ${HAVE_VALGRIND_VALGRIND_H}")
   message("")
   message("STDC_HEADERS ................: ${STDC_HEADERS}")
   message("HAVE_VALGRIND_VALGRIND_H ....: ${HAVE_VALGRIND_VALGRIND_H}")
-  message("HAVE_SYS_STAT_H .............: ${HAVE_SYS_STAT_H}")
   message("HAVE_WINDOWS_H ..............: ${HAVE_WINDOWS_H}")
   message("HAVE_WINDOWS_H ..............: ${HAVE_WINDOWS_H}")
-  message("HAVE_ERRNO_H ................: ${HAVE_ERRNO_H}")
   message("HAVE_UNISTD_H ...............: ${HAVE_UNISTD_H}")
   message("HAVE_EXECINFO_H .............: ${HAVE_EXECINFO_H}")
   message("HAVE_SIGNAL_H ...............: ${HAVE_SIGNAL_H}")
   message("HAVE_UNISTD_H ...............: ${HAVE_UNISTD_H}")
   message("HAVE_EXECINFO_H .............: ${HAVE_EXECINFO_H}")
   message("HAVE_SIGNAL_H ...............: ${HAVE_SIGNAL_H}")
index dcff601..8de747c 100644 (file)
@@ -57,9 +57,6 @@
 #cmakedefine HAVE_RAW_CONTEXTS @HAVE_RAW_CONTEXTS@
 #cmakedefine HAVE_BOOST_CONTEXTS @HAVE_BOOST_CONTEXTS@
 
 #cmakedefine HAVE_RAW_CONTEXTS @HAVE_RAW_CONTEXTS@
 #cmakedefine HAVE_BOOST_CONTEXTS @HAVE_BOOST_CONTEXTS@
 
-/* Define to 1 if you have the <errno.h> header file. */
-#cmakedefine HAVE_ERRNO_H @HAVE_ERRNO_H@
-
 /* Define to 1 if you have the <execinfo.h> header file. */
 #cmakedefine HAVE_EXECINFO_H @HAVE_EXECINFO_H@
 
 /* Define to 1 if you have the <execinfo.h> header file. */
 #cmakedefine HAVE_EXECINFO_H @HAVE_EXECINFO_H@
 
 /* Define to 1 if you have the `sysconf' function. */
 #cmakedefine HAVE_SYSCONF @HAVE_SYSCONF@
 
 /* Define to 1 if you have the `sysconf' function. */
 #cmakedefine HAVE_SYSCONF @HAVE_SYSCONF@
 
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#cmakedefine HAVE_SYS_STAT_H @HAVE_SYS_STAT_H@
-
 /* Define to 1 if you have the <sys/ptrace.h> header file. */
 #cmakedefine HAVE_SYS_PTRACE_H @HAVE_SYS_PTRACE_H@
 
 /* Define to 1 if you have the <sys/ptrace.h> header file. */
 #cmakedefine HAVE_SYS_PTRACE_H @HAVE_SYS_PTRACE_H@