aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2014-07-15 01:32:27 +0100
committerMichael Reed <m.reed@mykolab.com>2015-05-21 02:09:49 -0400
commite1f83d304dc787374ae152bb308599dd024ae2bb (patch)
tree67806d9fce87526d7236e1bd53b5d6e06041e859
parent32837cc7df5da97b367da61fdb6e5da47f55e590 (diff)
downloadrneovim-e1f83d304dc787374ae152bb308599dd024ae2bb.tar.gz
rneovim-e1f83d304dc787374ae152bb308599dd024ae2bb.tar.bz2
rneovim-e1f83d304dc787374ae152bb308599dd024ae2bb.zip
Add header guards for sys/time.h and unistd.h in log.c
-rw-r--r--src/nvim/log.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nvim/log.c b/src/nvim/log.c
index a3e708aa4d..236fdb6d12 100644
--- a/src/nvim/log.c
+++ b/src/nvim/log.c
@@ -4,14 +4,19 @@
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
-#include <sys/time.h>
-#include <unistd.h>
#include "nvim/log.h"
#include "nvim/types.h"
#include "nvim/os/os.h"
#include "nvim/os/time.h"
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
#define USR_LOG_FILE "$HOME/.nvimlog"