e62165c8b0
used LIBTHREAD_1_0 as its version definition, but now needs to define its symbols in the same namespace used by libc. The compatibility hooks allows you to use libraries and binaries built and linked to libpthread before libc was built with symbol versioning. The shims can be removed if libpthread is given a version bump. Reviewed by: davidxu
18 lines
198 B
C
18 lines
198 B
C
/*
|
|
* $FreeBSD$
|
|
*/
|
|
#include <unistd.h>
|
|
|
|
#include "thr_private.h"
|
|
|
|
LT10_COMPAT_PRIVATE(_vfork);
|
|
LT10_COMPAT_DEFAULT(vfork);
|
|
|
|
__weak_reference(_vfork, vfork);
|
|
|
|
int
|
|
_vfork(void)
|
|
{
|
|
return (fork());
|
|
}
|