summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/random.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2016-05-29 16:10:01 +0000
committered <ed@FreeBSD.org>2016-05-29 16:10:01 +0000
commitfa9d379051eb8023069a3ad724760edeb5851510 (patch)
tree8300298424ddd233669a6ae37cd1b03b5e2c2d02 /lib/libc/stdlib/random.c
parentead782ed2d9da1f22691867c0aa31d613d126782 (diff)
downloadFreeBSD-src-fa9d379051eb8023069a3ad724760edeb5851510.zip
FreeBSD-src-fa9d379051eb8023069a3ad724760edeb5851510.tar.gz
Replace local prototype of basename() with an inclusion of <libgen.h>.
libiberty currently defines the prototype for basename() itself instead of using <libgen.h>. It still uses the BSD-style prototype instead of the POSIX one, meaning that if FreeBSD would switch over to the POSIX one, you wouldn't be able to use libiberty.h and libgen.h in a single source file. It turns out that kgdb does this. Patch up libiberty to just include <libgen.h>. I'm currently talking to upstream to see whether we can come up with a more complete solution that could be integrated, but for our unmaintained copy of GDB in base, let's just apply the simplest workaround possible. Reviewed by: pfg Differential Revision: https://reviews.freebsd.org/D6631
Diffstat (limited to 'lib/libc/stdlib/random.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud