about summary refs log tree commit diff stats
path: root/adapter/protocol
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-01-06 20:16:02 +0100
committerbptato <nincsnevem662@gmail.com>2024-01-06 20:16:02 +0100
commit30e648064e06f32e1a49e41fa4ce470719ca5938 (patch)
tree630d2366b0383b723f5add5c8f867a97822bbb2e /adapter/protocol
parent4c81d51a304fea9d9e902ad8b5a28d1d3b9a9a03 (diff)
downloadchawan-30e648064e06f32e1a49e41fa4ce470719ca5938.tar.gz
about: fix compilation error on Nim 1.14
Diffstat (limited to 'adapter/protocol')
-rw-r--r--adapter/protocol/about.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/adapter/protocol/about.nim b/adapter/protocol/about.nim
index 02aacc00..df5ae649 100644
--- a/adapter/protocol/about.nim
+++ b/adapter/protocol/about.nim
@@ -1,4 +1,7 @@
-import std/envvars
+when NimMajor >= 2:
+  import std/envvars
+else:
+  import std/os
 
 const chawan = staticRead"res/chawan.html"
 const license = staticRead"res/license.html"