]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
__weak_alias() doesn't exist on FreeBSD. Use __weak_reference();
authorPeter Wemm <peter@FreeBSD.org>
Mon, 1 Jul 2013 08:06:26 +0000 (08:06 +0000)
committerPeter Wemm <peter@FreeBSD.org>
Mon, 1 Jul 2013 08:06:26 +0000 (08:06 +0000)
commit3d4b80da4e518a0c3932e17f9afe730efa98e26c
tree6ccd193339a06c80e18d73d20490bedc798e225c
parent0d5daade6d7101438cc76e954838bce2ba7aad00
__weak_alias() doesn't exist on FreeBSD.  Use __weak_reference();

Expose iconv functions as weak symbols as well as their internal
remapped #define names.  This is necessary for autoconf compatability -
on Linux it appears that #include <iconv.h> isn't a link time
prerequisite for their version that's built into glibc.

Initialize the pthread rwlock.  Note that upstream has three
separate locks.  The file-local static lock appears intentional.

I'm using this as a ports-compatible compile-time substitute for
converters/libiconv on one of my personal machines.
lib/libc/iconv/Symbol.map
lib/libc/iconv/citrus_lock.h
lib/libc/iconv/iconv.c