OSDN Git Service

When you include the posix header libgen.h, glibc #defines basename to some random...
authorRob Landley <rob@landley.net>
Wed, 31 Dec 2014 22:22:31 +0000 (16:22 -0600)
committerRob Landley <rob@landley.net>
Wed, 31 Dec 2014 22:22:31 +0000 (16:22 -0600)
commitde699accf6804e8b1d8042b46c85500ee8c672c6
tree7b12adea478bcfd9355a4fda982d74c40810f42b
parent774c599c7979392f4ec95e9b48ac25f0353c0c47
When you include the posix header libgen.h, glibc #defines basename to some random other symbol name (because gnu) and this screws up nontrivial macro expansions of NEWTOY(basename), so work around it in portability.h.
lib/portability.c
lib/portability.h
toys.h
toys/posix/dirname.c