From 0f450f549262004dc04daae3d12c4df9262fe64b Mon Sep 17 00:00:00 2001 From: Aaron Bird <25508292+Aaron-Bird@users.noreply.github.com> Date: Mon, 14 Aug 2023 08:14:16 +0800 Subject: [PATCH] Fix error of make command in Cygwin environment (#1236) Environment: - Windows 10 - Cygwin 2.925 make output: ``` : note: this is the location of the previous definition src/apps/common/ns_turn_utils.c:53:10: fatal error: sys/syscall.h: No such file or directory 53 | #include | ^~~~~~~~~~~~~~~ compilation terminated. In file included from src/client/ns_turn_ioaddr.h:34, from src/client/ns_turn_msg.h:34, from src/apps/common/stun_buffer.h:34, from src/apps/common/stun_buffer.c:31: src/ns_turn_defs.h:223: warning: "TURN_NO_SCTP" redefined 223 | #define TURN_NO_SCTP | : note: this is the location of the previous definition make: *** [Makefile:127: bin/turnutils_oauth] Error 1 ``` --- src/apps/common/ns_turn_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/common/ns_turn_utils.c b/src/apps/common/ns_turn_utils.c index 182858c..8d14c5b 100644 --- a/src/apps/common/ns_turn_utils.c +++ b/src/apps/common/ns_turn_utils.c @@ -49,7 +49,7 @@ #include -#if !defined(WINDOWS) +#if !defined(WINDOWS) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) && !defined(__CYGWIN64__) #include #include #ifdef SYS_gettid