summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure5
-rw-r--r--src/inspircd.cpp3
2 files changed, 6 insertions, 2 deletions
diff --git a/configure b/configure
index 143615673..375635a01 100755
--- a/configure
+++ b/configure
@@ -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"