mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 14:58:18 +00:00
Add header guards for sys/time.h and unistd.h in log.c
This commit is contained in:

committed by
Michael Reed

parent
32837cc7df
commit
e1f83d304d
@@ -4,14 +4,19 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/time.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
#include "nvim/log.h"
|
#include "nvim/log.h"
|
||||||
#include "nvim/types.h"
|
#include "nvim/types.h"
|
||||||
#include "nvim/os/os.h"
|
#include "nvim/os/os.h"
|
||||||
#include "nvim/os/time.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"
|
#define USR_LOG_FILE "$HOME/.nvimlog"
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user