diff options
author | Mark Lai <laimark900317@gmail.com> | 2023-08-16 17:50:21 +0800 |
---|---|---|
committer | Mark Lai <laimark900317@gmail.com> | 2023-08-16 17:50:21 +0800 |
commit | c6e2b703c560878bdb49377064d255b5a5fb50af (patch) | |
tree | 596534b2152a14f01591b169b5d1ec3a3ab01882 | |
parent | 5a499ef718bba2fc323e9771ebd7545c66825ff6 (diff) | |
download | riscv-isa-sim-c6e2b703c560878bdb49377064d255b5a5fb50af.zip riscv-isa-sim-c6e2b703c560878bdb49377064d255b5a5fb50af.tar.gz riscv-isa-sim-c6e2b703c560878bdb49377064d255b5a5fb50af.tar.bz2 |
Include cerrno in fesvr/elfloader.cc
It caused compile error "use of undeclared identifier 'errno'" at line 26 and 33.
I Add #include <cerrno> in fesvr/elfloader.cc to fix error and compile successfully.
-rw-r--r-- | fesvr/elfloader.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fesvr/elfloader.cc b/fesvr/elfloader.cc index c70de12..391afa0 100644 --- a/fesvr/elfloader.cc +++ b/fesvr/elfloader.cc @@ -16,6 +16,7 @@ #include <stdio.h> #include <vector> #include <map> +#include <cerrno> std::map<std::string, uint64_t> load_elf(const char* fn, memif_t* memif, reg_t* entry, unsigned required_xlen = 0) { |