Add header guards for sys/time.h and unistd.h in log.c

This commit is contained in:
Rui Abreu Ferreira 2014-07-15 01:32:27 +01:00 committed by Michael Reed
parent 32837cc7df
commit e1f83d304d

View File

@ -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"