shithub: sox

Download patch

ref: 946687bf7eb29c7bbff52cedfd29599a68d402a4
parent: de763541a62168d66dd9f98f45ab00ecb8182464
author: Ulrich Klauer <ulrich@chirlu.de>
date: Sun Jan 13 09:13:57 EST 2013

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.

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -81,6 +81,7 @@
 check_include_files("stdint.h"           HAVE_STDINT_H)
 check_include_files("string.h"           HAVE_STRING_H)
 check_include_files("strings.h"          HAVE_STRINGS_H)
+check_include_files("sys/stat.h"         HAVE_SYS_STAT_H)
 check_include_files("sys/time.h"         HAVE_SYS_TIME_H)
 check_include_files("sys/timeb.h"        HAVE_SYS_TIMEB_H)
 check_include_files("sys/types.h"        HAVE_SYS_TYPES_H)
--- a/src/soxconfig.h.cmake
+++ b/src/soxconfig.h.cmake
@@ -47,6 +47,7 @@
 #cmakedefine HAVE_SUN_AUDIOIO_H       1
 #cmakedefine HAVE_SYS_AUDIOIO_H       1
 #cmakedefine HAVE_SYS_SOUNDCARD_H     1
+#cmakedefine HAVE_SYS_STAT_H          1
 #cmakedefine HAVE_SYS_TIMEB_H         1
 #cmakedefine HAVE_SYS_TIME_H          1
 #cmakedefine HAVE_SYS_TYPES_H         1