openrgb: fix build on musl.
This commit is contained in:
parent
8c03af41b2
commit
fb0d9e4644
1 changed files with 13 additions and 0 deletions
13
srcpkgs/openrgb/patches/musl.patch
Normal file
13
srcpkgs/openrgb/patches/musl.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/i2c_smbus/i2c_smbus_linux.cpp b/i2c_smbus/i2c_smbus_linux.cpp
|
||||||
|
index 33d1494b..f8a2c503 100644
|
||||||
|
--- a/i2c_smbus/i2c_smbus_linux.cpp
|
||||||
|
+++ b/i2c_smbus/i2c_smbus_linux.cpp
|
||||||
|
@@ -133,7 +133,7 @@ bool i2c_smbus_linux_detect()
|
||||||
|
strcat(path, ent->d_name);
|
||||||
|
if(ent->d_type == DT_LNK)
|
||||||
|
{
|
||||||
|
- ptr = canonicalize_file_name(path);
|
||||||
|
+ ptr = realpath(path, NULL);
|
||||||
|
if(ptr == NULL)
|
||||||
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue