summaryrefslogtreecommitdiffstats
path: root/package/nginx/0008-src-os-unix-ngx_linux_config.h-only-include-dlfcn.h-.patch
diff options
context:
space:
mode:
authorMartin Bark <martin@barkynet.com>2016-05-09 12:29:02 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-05-13 23:21:01 +0200
commit7d02cc629caf9c58680c13bc306b23441530116d (patch)
tree15fb90052b343281da6412c928c7161724a9c495 /package/nginx/0008-src-os-unix-ngx_linux_config.h-only-include-dlfcn.h-.patch
parent65778b870049653980b47b4f483f0e23c1fec000 (diff)
downloadbuildroot-7d02cc629caf9c58680c13bc306b23441530116d.tar.gz
buildroot-7d02cc629caf9c58680c13bc306b23441530116d.zip
package/nginx: fix dlopen support
Only include dlfcn.h on systems that support it This fixes: http://autobuild.buildroot.net/results/f72a9a81e21166af20332d835d71651be7c016c3/ Signed-off-by: Martin Bark <martin@barkynet.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/nginx/0008-src-os-unix-ngx_linux_config.h-only-include-dlfcn.h-.patch')
-rw-r--r--package/nginx/0008-src-os-unix-ngx_linux_config.h-only-include-dlfcn.h-.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/nginx/0008-src-os-unix-ngx_linux_config.h-only-include-dlfcn.h-.patch b/package/nginx/0008-src-os-unix-ngx_linux_config.h-only-include-dlfcn.h-.patch
new file mode 100644
index 0000000000..a6f7c0dbad
--- /dev/null
+++ b/package/nginx/0008-src-os-unix-ngx_linux_config.h-only-include-dlfcn.h-.patch
@@ -0,0 +1,33 @@
+From 8dc9dffc1f99ac951865f3135dfb5061a08d1f85 Mon Sep 17 00:00:00 2001
+From: Martin Bark <martin@barkynet.com>
+Date: Fri, 6 May 2016 16:29:17 +0100
+Subject: [PATCH 8/8] src/os/unix/ngx_linux_config.h: only include dlfcn.h if
+ available
+
+Signed-off-by: Martin Bark <martin@barkynet.com>
+---
+ src/os/unix/ngx_linux_config.h | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/src/os/unix/ngx_linux_config.h b/src/os/unix/ngx_linux_config.h
+index 2f6129d..4244086 100644
+--- a/src/os/unix/ngx_linux_config.h
++++ b/src/os/unix/ngx_linux_config.h
+@@ -55,10 +55,12 @@
+ #include <crypt.h>
+ #include <sys/utsname.h> /* uname() */
+
+-#include <dlfcn.h>
++#include <ngx_auto_config.h>
+
+
+-#include <ngx_auto_config.h>
++#if (NGX_HAVE_DLOPEN)
++#include <dlfcn.h>
++#endif
+
+
+ #if (NGX_HAVE_POSIX_SEM)
+--
+2.8.2
+
OpenPOWER on IntegriCloud