[build] propagate HAVE_DLFCN_H in builds
parent
1a8d8e0ca5
commit
cd738d4daa
|
@ -367,6 +367,7 @@ if 1:
|
|||
autoconf.haveCHeaders([
|
||||
'arpa/inet.h',
|
||||
'crypt.h',
|
||||
'dlfcn.h',
|
||||
'fcntl.h',
|
||||
'getopt.h',
|
||||
'inttypes.h',
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#endif
|
||||
|
||||
/* System */
|
||||
#cmakedefine HAVE_DLFCN_H
|
||||
#cmakedefine HAVE_PORT_H
|
||||
#cmakedefine HAVE_SYS_DEVPOLL_H
|
||||
#cmakedefine HAVE_SYS_EPOLL_H
|
||||
|
|
|
@ -46,6 +46,7 @@ conf_data.set('HAVE_SYS_WAIT_H', compiler.has_header('sys/wait.h'))
|
|||
conf_data.set('HAVE_SYS_TIME_H', compiler.has_header('sys/time.h'))
|
||||
conf_data.set('HAVE_UNISTD_H', compiler.has_header('unistd.h'))
|
||||
conf_data.set('HAVE_PTHREAD_H', compiler.has_header('pthread.h'))
|
||||
conf_data.set('HAVE_DLFCN_H', compiler.has_header('dlfcn.h'))
|
||||
conf_data.set('HAVE_GETOPT_H', compiler.has_header('getopt.h'))
|
||||
conf_data.set('HAVE_INTTYPES_H', compiler.has_header('inttypes.h'))
|
||||
conf_data.set('HAVE_MALLOC_H', compiler.has_header('malloc.h'))
|
||||
|
|
|
@ -14,8 +14,10 @@ array plugin_stats; /* global */
|
|||
# include <valgrind/valgrind.h>
|
||||
#endif
|
||||
|
||||
#if !defined(__WIN32) && !defined(LIGHTTPD_STATIC)
|
||||
# include <dlfcn.h>
|
||||
#ifndef LIGHTTPD_STATIC
|
||||
#ifdef HAVE_DLFCN_H
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
#endif
|
||||
/*
|
||||
*
|
||||
|
|
|
@ -205,9 +205,11 @@ typedef enum FAMCodes { /*(copied from fam.h to define arbitrary enum values)*/
|
|||
|
||||
#ifdef HAVE_FAMNOEXISTS
|
||||
#ifndef LIGHTTPD_STATIC
|
||||
#ifdef HAVE_DLFCN_H
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue