summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/buffer.c3
-rw-r--r--common/compat.c2
-rw-r--r--common/compat.h9
3 files changed, 11 insertions, 3 deletions
diff --git a/common/buffer.c b/common/buffer.c
index cc5480f..096fac8 100644
--- a/common/buffer.c
+++ b/common/buffer.c
@@ -1,8 +1,9 @@
-#include "usuals.h"
+#include "compat.h"
#include "buffer.h"
#include "stringx.h"
+#include <errno.h>
#include <syslog.h>
/* -----------------------------------------------------------------------
diff --git a/common/compat.c b/common/compat.c
index daddbd2..c412605 100644
--- a/common/compat.c
+++ b/common/compat.c
@@ -1,6 +1,6 @@
-#include "usuals.h"
#include "compat.h"
+#include <stdlib.h>
#ifndef HAVE_REALLOCF
diff --git a/common/compat.h b/common/compat.h
index c7f86cc..c292652 100644
--- a/common/compat.h
+++ b/common/compat.h
@@ -1,5 +1,4 @@
-
#ifndef _COMPAT_H_
#define _COMPAT_H_
@@ -9,6 +8,14 @@
#include <sys/types.h>
+
+#ifdef _DEBUG
+ #include "assert.h"
+ #define ASSERT assert
+#else
+ #define ASSERT
+#endif
+
#ifndef HAVE_STDARG_H
# error ERROR: Must have a working stdarg.h header
#else