speexdsp-fixbuilds-774c87d.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. diff --git a/configure.ac b/configure.ac
  2. index 2cd2d1e..1de0c23 100644
  3. --- a/configure.ac
  4. +++ b/configure.ac
  5. @@ -334,6 +334,12 @@ AC_SUBST([USIZE16])
  6. AC_SUBST([SIZE32])
  7. AC_SUBST([USIZE32])
  8. +AS_IF([test "$ac_cv_header_stdint_h" = "yes"], [INCLUDE_STDINT="#include <stdint.h>"],
  9. + [test "$ac_cv_header_inttypes_h" = "yes"], [INCLUDE_STDINT="#include <inttypes.h>"],
  10. + [test "$ac_cv_header_sys_types_h" = "yes"], [INCLUDE_STDINT="#include <sys/types.h>"])
  11. +
  12. +AC_SUBST([INCLUDE_STDINT])
  13. +
  14. AC_CONFIG_FILES([
  15. Makefile libspeexdsp/Makefile doc/Makefile SpeexDSP.spec
  16. include/Makefile include/speex/Makefile speexdsp.pc
  17. diff --git a/include/speex/speexdsp_config_types.h.in b/include/speex/speexdsp_config_types.h.in
  18. index 02b82fd..5ea7b55 100644
  19. --- a/include/speex/speexdsp_config_types.h.in
  20. +++ b/include/speex/speexdsp_config_types.h.in
  21. @@ -1,13 +1,7 @@
  22. #ifndef __SPEEX_TYPES_H__
  23. #define __SPEEX_TYPES_H__
  24. -#if defined HAVE_STDINT_H
  25. -# include <stdint.h>
  26. -#elif defined HAVE_INTTYPES_H
  27. -# include <inttypes.h>
  28. -#elif defined HAVE_SYS_TYPES_H
  29. -# include <sys/types.h>
  30. -#endif
  31. +@INCLUDE_STDINT@
  32. typedef @SIZE16@ spx_int16_t;
  33. typedef @USIZE16@ spx_uint16_t;