tools/xenpm: fix FreeBSD build

ENODATA is not defined on FreeBSD:

xenpm.c:1380:17: error: use of undeclared identifier 'ENODATA'
 1380 |         errno = ENODATA;
      |                 ^
1 error generated.

Fixes: edb657887a ("xenpm: Add get-core-temp subcommand")
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Teddy Astie <teddy.astie@vates.tech>
Acked-by: Anthony PERARD <anthony.perard@vates.tech>
This commit is contained in:
Roger Pau Monne committed 2026-04-22 16:23:46 +02:00
1 parent 0443b0ee4b
commit 1096f5f49e
1 file changed
+1 -1
+1 -1
View File
@@ -1377,7 +1377,7 @@ static int fetch_dts_temp(xc_interface *xch, uint32_t cpu, bool package, int *te
{
case 0:
/* This CPU isn't online or can't query this MSR */
errno = ENODATA;
errno = ENODEV;
return -1;
case 1:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.