diff --git a/src/kits/network/libnet/compat.c b/src/kits/network/libnet/compat.c index 5e9ede7d3b..c983687bad 100644 --- a/src/kits/network/libnet/compat.c +++ b/src/kits/network/libnet/compat.c @@ -18,6 +18,8 @@ static int32 h_errno_tls = -1; +void _init(void); +void _fini(void); void initialize_before(void); void terminate_after(void); @@ -30,7 +32,7 @@ int _netconfig_find(void); /* These should probably be moved to a seperate file as they * are unique to the library as a whole... */ -/* + _EXPORT void _init() { h_errno_tls = tls_allocate(); @@ -39,16 +41,17 @@ _EXPORT void _init() _EXPORT void _fini() { } -*/ + + _EXPORT void initialize_before(void) { - h_errno_tls = tls_allocate(); } _EXPORT void terminate_after(void) { } + _EXPORT int closesocket(int sock) { return close(sock);