change include genode/env to an import (#20721)

* change `include genode/env` to an import 

ref 0b262e9496 (diff-8718bd20d8)

* fixes comments
This commit is contained in:
ringabout 2022-11-01 18:18:06 +08:00 • committed by GitHub
commit 07cf4486bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@
#
when not defined(genode):
{.error: "Genode only include".}
{.error: "Genode only module".}
type
GenodeEnvObj* {.importcpp: "Genode::Env", header: "<base/env.h>", pure.} = object

View file

@ -1172,7 +1172,7 @@ else:
when declared(posix.accept4):
from posix import accept4, SOCK_CLOEXEC
when defined(genode):
include genode/env # get the implicit Genode env
import genode/env # get the implicit Genode env
import genode/signals
const