Bug 24495 – Fails to build on platforms without PATH_MAX (like hurd)
authorSamuel Thibault <sthibault@debian.org>
Thu, 15 Oct 2009 20:52:40 +0000 (16:52 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Thu, 15 Oct 2009 20:52:40 +0000 (16:52 -0400)
commitd7a5e544a47f5dcaa4737ddf73b959756503ab66
treed5121f853e26e29c5f53a637e47024e31c8693b4
parentce29effd0d2405e2adea7dc496be8ed841083ed1
Bug 24495 – Fails to build on platforms without PATH_MAX (like hurd)

PATH_MAX, which hurd-i386 doesn't define since it doesn't have such
arbitrary limitation.  The attached patch fixes it by just using
glibc's get_current_dir_name() extension when available.

Signed-off-by: Michael Biebl <mbiebl@gmail.com>
Signed-off-by: David Zeuthen <davidz@redhat.com>
src/examples/frobnicate.c