0008-src-os-unix-ngx_linux_config.h-only-include-dlfcn.h-.patch 825 B

123456789101112131415161718192021222324252627282930313233
  1. From 8dc9dffc1f99ac951865f3135dfb5061a08d1f85 Mon Sep 17 00:00:00 2001
  2. From: Martin Bark <martin@barkynet.com>
  3. Date: Fri, 6 May 2016 16:29:17 +0100
  4. Subject: [PATCH] src/os/unix/ngx_linux_config.h: only include dlfcn.h if
  5. available
  6. Signed-off-by: Martin Bark <martin@barkynet.com>
  7. ---
  8. src/os/unix/ngx_linux_config.h | 6 ++++--
  9. 1 file changed, 4 insertions(+), 2 deletions(-)
  10. diff --git a/src/os/unix/ngx_linux_config.h b/src/os/unix/ngx_linux_config.h
  11. index 2f6129d..4244086 100644
  12. --- a/src/os/unix/ngx_linux_config.h
  13. +++ b/src/os/unix/ngx_linux_config.h
  14. @@ -55,10 +55,12 @@
  15. #include <crypt.h>
  16. #include <sys/utsname.h> /* uname() */
  17. -#include <dlfcn.h>
  18. +#include <ngx_auto_config.h>
  19. -#include <ngx_auto_config.h>
  20. +#if (NGX_HAVE_DLOPEN)
  21. +#include <dlfcn.h>
  22. +#endif
  23. #if (NGX_HAVE_POSIX_SEM)
  24. --
  25. 2.8.2