Don't use glibc specific function.
This commit is contained in:
parent
c6bb160bfe
commit
48d1a4f7b6
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ bool i2c_smbus_linux_detect()
|
||||||
strcat(path, ent->d_name);
|
strcat(path, ent->d_name);
|
||||||
if(ent->d_type == DT_LNK)
|
if(ent->d_type == DT_LNK)
|
||||||
{
|
{
|
||||||
ptr = canonicalize_file_name(path);
|
ptr = realpath(path, NULL);
|
||||||
if(ptr == NULL)
|
if(ptr == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue