summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-08-17 23:17:07 +0000
committerStef Walter <stef@memberwebs.com>2004-08-17 23:17:07 +0000
commit6df85597413840846409f7434941ed0f10ec4a38 (patch)
tree71968501063d017ae312a2a1fc7bf470bf19a0f5 /common
parent4faa3b65abad58a20c5e7e401361d30188460a83 (diff)
- Proper separation between common and daemon directories.
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