Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
693B

  1. diff --git a/src/serd_config.h b/src/serd_config.h
  2. index f9d6269..7e6715c 100644
  3. --- a/src/serd_config.h
  4. +++ b/src/serd_config.h
  5. @@ -33,7 +33,7 @@
  6. // POSIX.1-2001: fileno()
  7. # ifndef HAVE_FILENO
  8. -# if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L
  9. +# if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L && !defined(__EMSCRIPTEN__)
  10. # define HAVE_FILENO
  11. # endif
  12. # endif
  13. @@ -49,7 +49,7 @@
  14. // POSIX.1-2001: posix_memalign()
  15. # ifndef HAVE_POSIX_MEMALIGN
  16. -# if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L
  17. +# if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L && !defined(__EMSCRIPTEN__)
  18. # define HAVE_POSIX_MEMALIGN
  19. # endif
  20. # endif