ed 979f97fade Improve compatibility of calls to dirname() on constant strings.
As the xinstall(8) utility had to be patched up to work with the POSIXly
correct basename()/dirname() prototypes, we make it pretty hard to build
previous versions of FreeBSD on HEAD. xinstall(8) is part of the
bootstrap tools.

Add some logic to <libgen.h> to automatically detect bad calls to
dirname() based on the type of the argument. If the argument is of type
'const char *', we simply fall back to calling into dirname@FBSD_1.0
directly.

I'll also give basename() similar treatment when importing the
thread-safe version of that function.

Tested by:	bdrewery, madpilot (thanks!)
2016-08-26 20:23:10 +00:00
..
2016-04-30 14:43:42 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-03-04 22:03:38 +00:00
2016-04-30 14:43:42 +00:00
2015-10-13 20:43:49 +00:00
2015-10-13 20:43:49 +00:00
2016-05-30 07:50:57 +00:00
2015-06-16 23:37:19 +00:00
2016-02-29 19:10:32 +00:00
2016-05-31 18:32:57 +00:00
2016-07-28 10:05:41 +00:00
2016-05-30 16:26:34 +00:00
2015-10-13 20:43:49 +00:00