summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/Makefile.am6
-rw-r--r--common/log.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/common/Makefile.am b/common/Makefile.am
index 1bc5851f..15466c9a 100644
--- a/common/Makefile.am
+++ b/common/Makefile.am
@@ -18,6 +18,12 @@ AM_CPPFLAGS = \
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
-DXRDP_LOG_PATH=\"${localstatedir}/log\"
+if XRDP_DEBUG
+AM_CPPFLAGS += -DXRDP_DEBUG
+else
+AM_CPPFLAGS += -DXRDP_NODEBUG
+endif
+
AM_CFLAGS = $(OPENSSL_CFLAGS)
module_LTLIBRARIES = \
diff --git a/common/log.h b/common/log.h
index 33bb41fd..d6a5b8f2 100644
--- a/common/log.h
+++ b/common/log.h
@@ -22,6 +22,7 @@
#include <pthread.h>
#include "arch.h"
+#include "defines.h"
/* logging buffer size */
#define LOG_BUFFER_SIZE 1024