Fix FreeBSD missing headers (#6326)

* Include missing libgen.h

* Include missing cinttypes
This commit is contained in:
Aleksander Kiryk 2025-08-23 16:38:18 +02:00 committed by GitHub
parent d56d1a7719
commit 34315a4f70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
22 changed files with 90 additions and 0 deletions

View File

@ -21,6 +21,10 @@
#include <cstdint>
#include <memory>
extern "C" {
#include <libgen.h>
}
#ifndef VM_TRACE_FST
// emulate new verilator behavior for legacy versions
#define VM_TRACE_FST 0

View File

@ -15,6 +15,10 @@
#include <cstdio>
#include <iostream>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestCheck.h"
#include "TestVpi.h"

View File

@ -22,6 +22,10 @@
#include <iostream>
#include <vector>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestCheck.h"
#include "TestSimulator.h"

View File

@ -31,6 +31,10 @@
#include <cstring>
#include <iostream>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestSimulator.h"
#include "TestVpi.h"

View File

@ -14,6 +14,10 @@
#include <cstdio>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestCheck.h"
#include "TestSimulator.h"

View File

@ -27,6 +27,10 @@
#include <iostream>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestCheck.h"
#include "TestSimulator.h"

View File

@ -31,6 +31,10 @@
#include <cstring>
#include <iostream>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestSimulator.h"
#include "TestVpi.h"

View File

@ -18,6 +18,10 @@
#endif
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestSimulator.h"
#include "TestVpi.h"

View File

@ -31,6 +31,10 @@
#include <cstring>
#include <iostream>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestCheck.h"
#include "TestSimulator.h"

View File

@ -31,6 +31,10 @@
#include <cstring>
#include <iostream>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestSimulator.h"
#include "TestVpi.h"

View File

@ -31,6 +31,10 @@
#include <cstring>
#include <iostream>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestSimulator.h"
#include "TestVpi.h"

View File

@ -28,12 +28,17 @@
#endif
#include <cassert>
#include <cinttypes>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <random>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestCheck.h"
#include "TestSimulator.h"

View File

@ -27,6 +27,11 @@
#endif
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestSimulator.h"
#include "TestVpi.h"

View File

@ -31,6 +31,10 @@
#include <cstring>
#include <iostream>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestSimulator.h"
#include "TestVpi.h"

View File

@ -38,6 +38,10 @@
#include <cstring>
#include <iostream>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestSimulator.h"
#include "TestVpi.h"

View File

@ -39,6 +39,10 @@
#include <cstring>
#include <iostream>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestSimulator.h"
#include "TestVpi.h"

View File

@ -18,6 +18,10 @@
#endif
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestSimulator.h"
#include "TestVpi.h"

View File

@ -29,6 +29,10 @@
#include <iostream>
#include <vector>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestSimulator.h"
#include "TestVpi.h"

View File

@ -16,6 +16,10 @@
#include <cstring>
#include <iostream>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestCheck.h"
#include "TestSimulator.h"

View File

@ -19,6 +19,10 @@
#include <iostream>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestVpi.h"

View File

@ -44,6 +44,10 @@
#include <cstring>
#include <iostream>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestCheck.h"
#include "TestSimulator.h"

View File

@ -32,6 +32,10 @@
#include <cstring>
#include <iostream>
extern "C" {
#include <libgen.h>
}
// These require the above. Comment prevents clang-format moving them
#include "TestCheck.h"
#include "TestSimulator.h"