diff options
-rw-r--r-- | src/nvim/log.c | 9 |
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" |