summaryrefslogtreecommitdiffstats
path: root/tests/getline.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-03-16 18:54:42 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-03-16 18:54:42 +0100
commit51e690f720b4a53a431e7a536b2fe8c25e866f7d (patch)
tree6722e6b94d03063db7e0705538976c266c7c934b /tests/getline.c
parent8f8e2cd66bd7f1e35f7bf0678e25bbdb99d67093 (diff)
downloadrsyslog-51e690f720b4a53a431e7a536b2fe8c25e866f7d.tar.gz
rsyslog-51e690f720b4a53a431e7a536b2fe8c25e866f7d.tar.xz
rsyslog-51e690f720b4a53a431e7a536b2fe8c25e866f7d.zip
fixed some portability issues
first noticed on FreeBSD Also, some cosmetic improvements.
Diffstat (limited to 'tests/getline.c')
-rw-r--r--tests/getline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/getline.c b/tests/getline.c
index 10de2ffe..617d1b0e 100644
--- a/tests/getline.c
+++ b/tests/getline.c
@@ -23,7 +23,8 @@
*/
#include "config.h"
#include <stdio.h>
-#include <malloc.h>
+#include <sys/types.h>
+#include <stdlib.h>
/* we emulate getline (the dirty way) if we do not have it
* We do not try very hard, as this is just a test driver.