mirror of
https://github.com/verilator/verilator.git
synced 2026-10-02 16:13:34 +02:00
Fix FreeBSD missing headers (#6326)
* Include missing libgen.h * Include missing cinttypes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -19,6 +19,10 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
extern "C" {
|
||||
#include <libgen.h>
|
||||
}
|
||||
|
||||
// These require the above. Comment prevents clang-format moving them
|
||||
#include "TestVpi.h"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user