History

Check for sys/stat.h when building with cmake

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.

Ulrich Klauer committed 13 years ago

Commit 946687b1 parent de763542 files · +2 −0Browse files

Unified · Split

2 files
  1. CMakeLists.txt +1 −0
  2. src/soxconfig.h.cmake +1 −0
CMakeLists.txt+1−0
@@ -81,6 +81,7 @@ check_include_files("io.h" HAVE_IO_H) · 80 unmodified lines
8181 check_include_files("stdint.h" HAVE_STDINT_H)
8282 check_include_files("string.h" HAVE_STRING_H)
8383 check_include_files("strings.h" HAVE_STRINGS_H)
84+check_include_files("sys/stat.h" HAVE_SYS_STAT_H)
8485 check_include_files("sys/time.h" HAVE_SYS_TIME_H)
8586 check_include_files("sys/timeb.h" HAVE_SYS_TIMEB_H)
8687 check_include_files("sys/types.h" HAVE_SYS_TYPES_H)
src/soxconfig.h.cmake+1−0
@@ -47,6 +47,7 @@ · 46 unmodified lines
4747 #cmakedefine HAVE_SUN_AUDIOIO_H 1
4848 #cmakedefine HAVE_SYS_AUDIOIO_H 1
4949 #cmakedefine HAVE_SYS_SOUNDCARD_H 1
50+#cmakedefine HAVE_SYS_STAT_H 1
5051 #cmakedefine HAVE_SYS_TIMEB_H 1
5152 #cmakedefine HAVE_SYS_TIME_H 1
5253 #cmakedefine HAVE_SYS_TYPES_H 1

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t