Browse Source

[build] propagate HAVE_DLFCN_H in builds

master
Glenn Strauss 3 weeks ago
parent
commit
cd738d4daa
  1. 1
      SConstruct
  2. 1
      src/config.h.cmake
  3. 1
      src/meson.build
  4. 6
      src/plugin.c
  5. 2
      src/stat_cache.c

1
SConstruct

@ -367,6 +367,7 @@ if 1:
autoconf.haveCHeaders([
'arpa/inet.h',
'crypt.h',
'dlfcn.h',
'fcntl.h',
'getopt.h',
'inttypes.h',

1
src/config.h.cmake

@ -13,6 +13,7 @@
#endif
/* System */
#cmakedefine HAVE_DLFCN_H
#cmakedefine HAVE_PORT_H
#cmakedefine HAVE_SYS_DEVPOLL_H
#cmakedefine HAVE_SYS_EPOLL_H

1
src/meson.build

@ -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'))

6
src/plugin.c

@ -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
/*
*

2
src/stat_cache.c

@ -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…
Cancel
Save