portability to non-glibc: don't use realpath(..., NULL)

it causes a NULL-dereference on some systems like Solaris 10.
* src/node_device/node_device_linux_sysfs.c. Include <stdlib.h>.
(get_sriov_function): Use canonicalize_file_name, not realpath.
* bootstrap (modules): Add canonicalize-lgpl.
This commit is contained in:
Jim Meyering
2010-01-27 13:39:46 +01:00
parent 950176ec65
commit b74aadb3e5
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -68,6 +68,7 @@ modules='
areadlink
base64
c-ctype
canonicalize-lgpl
close
connect
getaddrinfo