forked from pool/lua-language-server
- meta: openresty add api run_worker_thread - bugfix:allow get() in sharedict return value and nil - table new/clear function actual use scenarios - #1325: add missing paramter type for getfenv - Meta: make osdate accept strings - More tag descriptions - fix typos in annotation - Update to 3.4.1: - Fix dofile returns multiple values ---@return any ... - add 3rd luafilesystem - OpenResty type annotation updates - fixing grammar in error message - Add time_includes.patch to fix missing #includes (gh#sumneko/lua-language-server#1377). OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-language-server?expand=0&rev=23
45 lines
1.0 KiB
Diff
45 lines
1.0 KiB
Diff
From e9ba0461065b94f3b0611cf6b5e2d88994cfa124 Mon Sep 17 00:00:00 2001
|
|
From: actboy168 <actboy168@gmail.com>
|
|
Date: Mon, 25 Jul 2022 09:42:26 +0800
|
|
Subject: [PATCH] fixes #1377
|
|
|
|
---
|
|
3rd/bee.lua/binding/lua_time.cpp | 2 ++
|
|
3rd/luamake/3rd/bee.lua/binding/lua_time.cpp | 2 ++
|
|
luamake/3rd/bee.lua/binding/lua_time.cpp | 2 ++
|
|
3 files changed, 6 insertions(+)
|
|
|
|
--- a/3rd/bee.lua/binding/lua_time.cpp
|
|
+++ b/3rd/bee.lua/binding/lua_time.cpp
|
|
@@ -2,6 +2,8 @@
|
|
|
|
#if defined(_WIN32)
|
|
#include <Windows.h>
|
|
+#else
|
|
+#include <time.h>
|
|
#endif
|
|
|
|
namespace bee::lua_time {
|
|
--- a/3rd/luamake/3rd/bee.lua/binding/lua_time.cpp
|
|
+++ b/3rd/luamake/3rd/bee.lua/binding/lua_time.cpp
|
|
@@ -2,6 +2,8 @@
|
|
|
|
#if defined(_WIN32)
|
|
#include <Windows.h>
|
|
+#else
|
|
+#include <time.h>
|
|
#endif
|
|
|
|
namespace bee::lua_time {
|
|
--- a/luamake/3rd/bee.lua/binding/lua_time.cpp
|
|
+++ b/luamake/3rd/bee.lua/binding/lua_time.cpp
|
|
@@ -2,6 +2,8 @@
|
|
|
|
#if defined(_WIN32)
|
|
#include <Windows.h>
|
|
+#else
|
|
+#include <time.h>
|
|
#endif
|
|
|
|
namespace bee::lua_time {
|