diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/log.c | 7 | ||||
-rw-r--r-- | src/nvim/log.h | 2 | ||||
-rw-r--r-- | src/nvim/quickfix.c | 2 | ||||
-rw-r--r-- | src/nvim/version.c | 6 |
4 files changed, 10 insertions, 7 deletions
diff --git a/src/nvim/log.c b/src/nvim/log.c index 252fe5438d..b64aef3cac 100644 --- a/src/nvim/log.c +++ b/src/nvim/log.c @@ -25,6 +25,10 @@ static uv_mutex_t mutex; # include "log.c.generated.h" #endif +#ifdef HAVE_EXECINFO_BACKTRACE +# include <execinfo.h> +#endif + static bool log_try_create(char *fname) { if (fname == NULL || fname[0] == '\0') { @@ -173,8 +177,7 @@ FILE *open_log_file(void) return stderr; } -#if defined(__linux__) -# include <execinfo.h> +#ifdef HAVE_EXECINFO_BACKTRACE void log_callstack(const char *const func_name, const int line_num) { void *trace[100]; diff --git a/src/nvim/log.h b/src/nvim/log.h index 2bd18f5776..743a8d17aa 100644 --- a/src/nvim/log.h +++ b/src/nvim/log.h @@ -61,7 +61,7 @@ __VA_ARGS__) #endif -#if defined(__linux__) +#ifdef HAVE_EXECINFO_BACKTRACE # define LOG_CALLSTACK() log_callstack(__func__, __LINE__) #endif diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 4997209556..e6b1e7b95a 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -3127,7 +3127,7 @@ static char_u *get_mef_name(void) STRCPY(name, p_mef); sprintf((char *)name + (p - p_mef), "%d%d", start, off); STRCAT(name, p + 2); - // Don't accept a symbolic link, its a security risk. + // Don't accept a symbolic link, it's a security risk. FileInfo file_info; bool file_or_link_found = os_fileinfo_link((char *)name, &file_info); if (!file_or_link_found) { diff --git a/src/nvim/version.c b/src/nvim/version.c index 962096000a..6662dff437 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -666,7 +666,7 @@ static const int included_patches[] = { 66, // 65 NA 64, - // 63, + // 63 NA 62, // 61 NA 60, @@ -683,7 +683,7 @@ static const int included_patches[] = { 49, // 48 NA 47, - // 46, + 46, // 45 NA // 44, 43, @@ -717,7 +717,7 @@ static const int included_patches[] = { // 15 NA // 14 NA // 13 NA - // 12, + 12, // 11 NA // 10 NA // 9 NA |