diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-20 16:13:01 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-20 16:13:01 +0000 |
commit | 67f111a8aa91a5ac5f06b22f74ad0e73cf1276c1 (patch) | |
tree | 23b4d1ba864200c1f5ae7037ef4c643e515f9a91 | |
parent | 364135911b3557b6ca10e7f69d0f531605b518f2 (diff) |
Execinfo stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3886 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-x | configure | 5 | ||||
-rw-r--r-- | src/inspircd.cpp | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -960,7 +960,6 @@ sub writefiles { #define REVISION "$revision2" #define MAXCLIENTS $config{MAX_CLIENT} #define MAX_DESCRIPTORS $config{MAX_DESCRIPTORS} -#define HAS_EXECINFO $config{HAS_EXECINFO} #define NICKMAX $NL #define CHANMAX $CL #define MAXCHANS $config{MAX_CHANNE} @@ -986,7 +985,9 @@ EOF if ($config{OSNAME} eq "CYG-STATIC") { print FILEHANDLE "#ifndef FD_SETSIZE\n#define FD_SETSIZE 1024\n#endif\n"; } - + if ($config{HAS_EXECINFO} eq "1") { + print FILEHANDLE "#define HAS_EXECINFO\n"; + } if ($config{STATIC_LINK} eq "yes") { print FILEHANDLE "#define STATIC_LINK\n"; } diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 5e437365b..91ac303c8 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -37,6 +37,9 @@ #ifdef THREADED_DNS #include <pthread.h> #endif +#ifdef HAS_EXECINFO +#include <execinfo.h> +#endif #include "users.h" #include "ctables.h" #include "globals.h" |