mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-05 03:13:41 +08:00
2a59854aa7
Changed [PATCH x/y] to [PATCH] at the beginning of the subject line since the numbering is meaningless. Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Martin Bark <martin@barkynet.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
34 lines
825 B
Diff
34 lines
825 B
Diff
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] 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
|
|
|