[DTrace-devel] [PATCH 04/17] Only include dt_git_version.h where needed
Kris Van Hees
kris.van.hees at oracle.com
Sat Jun 7 06:14:58 UTC 2025
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>
---
libdtrace/dt_open.c | 2 ++
libdtrace/dt_version.h | 3 +--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/libdtrace/dt_open.c b/libdtrace/dt_open.c
index 51c056b2..0bda3504 100644
--- a/libdtrace/dt_open.c
+++ b/libdtrace/dt_open.c
@@ -42,6 +42,8 @@
#include <dt_peb.h>
#include <dt_pid.h>
+#include <dt_git_version.h>
+
const dt_version_t _dtrace_versions[] = {
DT_VERS_1_0, /* D API 1.0.0 (PSARC 2001/466) Solaris 10 FCS */
DT_VERS_1_1, /* D API 1.1.0 Solaris Express 6/05 */
diff --git a/libdtrace/dt_version.h b/libdtrace/dt_version.h
index 3fd1b3d1..29094587 100644
--- a/libdtrace/dt_version.h
+++ b/libdtrace/dt_version.h
@@ -1,6 +1,6 @@
/*
* Oracle Linux DTrace.
- * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
@@ -13,7 +13,6 @@ extern "C" {
#endif
#include <dt_ident.h>
-#include <dt_git_version.h>
/*
* Stability definitions
--
2.45.2
More information about the DTrace-devel
mailing list