# HG changeset patch # User Elliott Hughes # Date 1421609791 21600 # Node ID 692be264d4f09ad9713537187d67512d429f7a38 # Parent 988f3d13b925789100a06a76d7b0892b9886dd73 fix non-glibc basename(3) usage I considered a #else on the big #ifdef __GLIBC__ above, but that seemed harder to follow. diff -r 988f3d13b925 -r 692be264d4f0 lib/portability.h --- a/lib/portability.h Fri Jan 16 13:55:32 2015 -0600 +++ b/lib/portability.h Sun Jan 18 13:36:31 2015 -0600 @@ -141,6 +141,11 @@ #endif +#ifndef __GLIBC__ +// POSIX basename. +#include +#endif + #ifdef __MUSL__ #include // Without this "rm -r dir" fails with "is directory".