Skip to content

Commit

Permalink
uts: work with recent kernel uapi headers
Browse files Browse the repository at this point in the history
These headers define dtrace_id_t themselves, but set
_DTRACE_ID_T_DEFINED when they do so.  Avoid redefining it ourselves in
this case.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
  • Loading branch information
nickalcock committed Oct 6, 2021
1 parent 9ffab97 commit 0449a78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uts/common/sys/dtrace_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ typedef unsigned long long hrtime_t;
* This comes from <linux/dtrace_os.h>.
*/

#ifndef _DTRACE_ID_T_DEFINED
typedef uint32_t dtrace_id_t;
#endif

#endif

0 comments on commit 0449a78

Please sign in to comment.