1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-06-07 00:51:40 +00:00

Fix kernel module name for FreeBSD ARM

This commit is contained in:
The Tumultuous Unicorn Of Darkness 2025-05-08 18:22:12 +02:00
parent 5bb7c32618
commit 9decce5867
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A

View file

@ -62,7 +62,7 @@ static int load_driver(char *cpuid_path)
# if defined (__linux__) || defined (__gnu_linux__)
return !system("modprobe cpuid 2> /dev/null");
# elif defined (__FreeBSD__) || defined (__DragonFly__)
return !system("kldload -n cpuctl 2> /dev/null");
return !system("kldload -n cpuid 2> /dev/null");
# endif
}