[njs] Fixed building with Apple clang.

Dmitry Volyntsev xeioex at nginx.com
Mon Feb 4 09:09:51 UTC 2019


details:   https://hg.nginx.org/njs/rev/6c66f34a89b9
branches:  
changeset: 757:6c66f34a89b9
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Mon Feb 04 11:45:24 2019 +0300
description:
Fixed building with Apple clang.

This closes #89 issue on Github.

diffstat:

 njs/njs_shell.c |  1 -
 nxt/nxt_time.c  |  1 +
 2 files changed, 1 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r db4c9c8efff5 -r 6c66f34a89b9 njs/njs_shell.c
--- a/njs/njs_shell.c	Mon Feb 04 06:22:51 2019 +0800
+++ b/njs/njs_shell.c	Mon Feb 04 11:45:24 2019 +0300
@@ -14,7 +14,6 @@
 #include <fcntl.h>
 #include <stdlib.h>
 #include <sys/stat.h>
-#include <sys/time.h>
 #include <locale.h>
 
 #include <readline.h>
diff -r db4c9c8efff5 -r 6c66f34a89b9 nxt/nxt_time.c
--- a/nxt/nxt_time.c	Mon Feb 04 06:22:51 2019 +0800
+++ b/nxt/nxt_time.c	Mon Feb 04 11:45:24 2019 +0300
@@ -10,6 +10,7 @@
 #include <nxt_time.h>
 
 #include <time.h>
+#include <sys/time.h>
 
 uint64_t
 nxt_time(void)


More information about the nginx-devel mailing list