libqmi: musl compat canonicalize_file_name
authorMatt Weber <matthew.weber@rockwellcollins.com>
Tue, 2 May 2017 01:29:06 +0000 (20:29 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 4 May 2017 15:13:06 +0000 (17:13 +0200)
commitc78b65c4f161ec101ff02880788ef22eb7c87d76
tree181faa87e1c11048544194752c79607044853854
parentf4891c398e599f18bbf41eb33885930431f5e1c8
libqmi: musl compat canonicalize_file_name

Adds an inline equivalent of canonicalize_file_name
using realpath().

Bug report (origin of this patch):
https://bugs.freedesktop.org/show_bug.cgi?id=99944

Resolves:
http://autobuild.buildroot.net/results/afa/afa4b97e012586585b11be1e70ed3c63a7c48a4d/

  CCLD     test-generated
  CCLD     test-utils
  CCLD     test-message
../../../src/libqmi-glib/.libs/libqmi-glib.so: undefined reference to `canonicalize_file_name'
collect2: error: ld returned 1 exit status
Makefile:440: recipe for target 'test-generated' failed

Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libqmi/0001-musl-compat-canonicalize_file_name.patch [new file with mode: 0644]