summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-04-21 10:24:32 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-04-21 10:24:32 +0000
commitbc5c4c1a3831f9abbde427e894165f1cd7c42bc0 (patch)
treeb706bf7c2f65b59f2c0dd5e56444e42113f2d017 /template.c
parent01a4d3e17d45539e97afb783118882ea12308801 (diff)
downloadrsyslog-bc5c4c1a3831f9abbde427e894165f1cd7c42bc0.tar.gz
rsyslog-bc5c4c1a3831f9abbde427e894165f1cd7c42bc0.tar.xz
rsyslog-bc5c4c1a3831f9abbde427e894165f1cd7c42bc0.zip
FreeBSD port
Diffstat (limited to 'template.c')
-rw-r--r--template.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/template.c b/template.c
index 2193b276..cda54918 100644
--- a/template.c
+++ b/template.c
@@ -3,8 +3,16 @@
* This code is placed under the GPL.
* begun 2004-11-17 rgerhards
*/
+#ifdef __FreeBSD__
+#define BSD
+#endif
+
#include <stdio.h>
+#ifdef BSD
+#include <stdlib.h>
+#else
#include <malloc.h>
+#endif
#include <string.h>
#include <ctype.h>
#include <assert.h>