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
579B

  1. diff --git a/src/lilv_config.h b/src/lilv_config.h
  2. index d348a03..0dbc4d7 100644
  3. --- a/src/lilv_config.h
  4. +++ b/src/lilv_config.h
  5. @@ -20,6 +20,8 @@
  6. #if !defined(LILV_NO_DEFAULT_CONFIG)
  7. +#define _GNU_SOURCE
  8. +
  9. // We need unistd.h to check _POSIX_VERSION
  10. # ifndef LILV_NO_POSIX
  11. # ifdef __has_include
  12. @@ -33,7 +35,7 @@
  13. // POSIX.1-2001: fileno()
  14. # ifndef HAVE_FILENO
  15. -# if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L
  16. +# if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L && !defined(__EMSCRIPTEN__)
  17. # define HAVE_FILENO
  18. # endif
  19. # endif