While we checked for sys/stat.h when building with the GNU toolchain, this check was missing in the cmake configuration, and HAVE_SYS_STAT_H was accordingly never set, whether the header file was present or not.
Unified · Split
| @@ -81,6 +81,7 @@ check_include_files("io.h" HAVE_IO_H) · 80 unmodified lines | ||
| 81 | 81 | check_include_files("stdint.h" HAVE_STDINT_H) |
| 82 | 82 | check_include_files("string.h" HAVE_STRING_H) |
| 83 | 83 | check_include_files("strings.h" HAVE_STRINGS_H) |
| 84 | +check_include_files("sys/stat.h" HAVE_SYS_STAT_H) | |
| 84 | 85 | check_include_files("sys/time.h" HAVE_SYS_TIME_H) |
| 85 | 86 | check_include_files("sys/timeb.h" HAVE_SYS_TIMEB_H) |
| 86 | 87 | check_include_files("sys/types.h" HAVE_SYS_TYPES_H) |
| @@ -47,6 +47,7 @@ · 46 unmodified lines | ||
| 47 | 47 | #cmakedefine HAVE_SUN_AUDIOIO_H 1 |
| 48 | 48 | #cmakedefine HAVE_SYS_AUDIOIO_H 1 |
| 49 | 49 | #cmakedefine HAVE_SYS_SOUNDCARD_H 1 |
| 50 | +#cmakedefine HAVE_SYS_STAT_H 1 | |
| 50 | 51 | #cmakedefine HAVE_SYS_TIMEB_H 1 |
| 51 | 52 | #cmakedefine HAVE_SYS_TIME_H 1 |
| 52 | 53 | #cmakedefine HAVE_SYS_TYPES_H 1 |