summaryrefslogtreecommitdiffstats
path: root/articles.h
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-01-09 17:00:35 +0900
committerFreeArtMan <dos21h@gmail.com>2015-01-09 17:00:35 +0900
commit3e989921c29534d38dbf6009851389fc4f4e226e (patch)
tree0f9e9c97e87c90ce90c596b5a9c0230d063e2952 /articles.h
parent8522c8656c313a9a3b956b0e6c816a8e54d15b7b (diff)
downloadmicrobbs-3e989921c29534d38dbf6009851389fc4f4e226e.tar.gz
microbbs-3e989921c29534d38dbf6009851389fc4f4e226e.zip
Mem leak fixes, warning fixes
Diffstat (limited to 'articles.h')
-rw-r--r--articles.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/articles.h b/articles.h
index fde6dda..2240904 100644
--- a/articles.h
+++ b/articles.h
@@ -1,6 +1,14 @@
#ifndef __MICROBBS_ARTICLES_H
#define __MICROBBS_ARTICLES_H
+#define _XOPEN_SOURCE 500
+
+#ifndef _BSD_SOURCE
+ #define _BSD_SOURCE
+#endif
+
+#define _POSIX_C_SOURCE 200809L
+
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
@@ -14,6 +22,7 @@
//part of libterm
#include "libterm/term.h"
+#include "libterm/term_io.h"
#include "logs.h"