diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-13 02:49:04 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-13 02:49:16 -0500 |
commit | efa5ac2ac2713bd7f058486fcd86bcc1572a2bc4 (patch) | |
tree | a0b36250dc11f95ce7cbb6c7177320c439e7b62b /user/speexdsp/speexdsp-fixbuilds-774c87d.patch | |
parent | 1e78a7b5661a3c11302066262cd250776c83c656 (diff) | |
download | packages-efa5ac2ac2713bd7f058486fcd86bcc1572a2bc4.tar.gz packages-efa5ac2ac2713bd7f058486fcd86bcc1572a2bc4.tar.bz2 packages-efa5ac2ac2713bd7f058486fcd86bcc1572a2bc4.tar.xz packages-efa5ac2ac2713bd7f058486fcd86bcc1572a2bc4.zip |
user/speexdsp: pull in, fix up
Diffstat (limited to 'user/speexdsp/speexdsp-fixbuilds-774c87d.patch')
-rw-r--r-- | user/speexdsp/speexdsp-fixbuilds-774c87d.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/user/speexdsp/speexdsp-fixbuilds-774c87d.patch b/user/speexdsp/speexdsp-fixbuilds-774c87d.patch new file mode 100644 index 000000000..c02ee29bd --- /dev/null +++ b/user/speexdsp/speexdsp-fixbuilds-774c87d.patch @@ -0,0 +1,36 @@ +diff --git a/configure.ac b/configure.ac +index 2cd2d1e..1de0c23 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -334,6 +334,12 @@ AC_SUBST([USIZE16]) + AC_SUBST([SIZE32]) + AC_SUBST([USIZE32]) + ++AS_IF([test "$ac_cv_header_stdint_h" = "yes"], [INCLUDE_STDINT="#include <stdint.h>"], ++ [test "$ac_cv_header_inttypes_h" = "yes"], [INCLUDE_STDINT="#include <inttypes.h>"], ++ [test "$ac_cv_header_sys_types_h" = "yes"], [INCLUDE_STDINT="#include <sys/types.h>"]) ++ ++AC_SUBST([INCLUDE_STDINT]) ++ + AC_CONFIG_FILES([ + Makefile libspeexdsp/Makefile doc/Makefile SpeexDSP.spec + include/Makefile include/speex/Makefile speexdsp.pc +diff --git a/include/speex/speexdsp_config_types.h.in b/include/speex/speexdsp_config_types.h.in +index 02b82fd..5ea7b55 100644 +--- a/include/speex/speexdsp_config_types.h.in ++++ b/include/speex/speexdsp_config_types.h.in +@@ -1,13 +1,7 @@ + #ifndef __SPEEX_TYPES_H__ + #define __SPEEX_TYPES_H__ + +-#if defined HAVE_STDINT_H +-# include <stdint.h> +-#elif defined HAVE_INTTYPES_H +-# include <inttypes.h> +-#elif defined HAVE_SYS_TYPES_H +-# include <sys/types.h> +-#endif ++@INCLUDE_STDINT@ + + typedef @SIZE16@ spx_int16_t; + typedef @USIZE16@ spx_uint16_t; |