Okay, initialize_*() are not called on plain C libraries...
Re-enable _init() and _fini() git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6483 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
static int32 h_errno_tls = -1;
|
static int32 h_errno_tls = -1;
|
||||||
|
|
||||||
|
void _init(void);
|
||||||
|
void _fini(void);
|
||||||
void initialize_before(void);
|
void initialize_before(void);
|
||||||
void terminate_after(void);
|
void terminate_after(void);
|
||||||
|
|
||||||
@@ -30,7 +32,7 @@ int _netconfig_find(void);
|
|||||||
/* These should probably be moved to a seperate file as they
|
/* These should probably be moved to a seperate file as they
|
||||||
* are unique to the library as a whole...
|
* are unique to the library as a whole...
|
||||||
*/
|
*/
|
||||||
/*
|
|
||||||
_EXPORT void _init()
|
_EXPORT void _init()
|
||||||
{
|
{
|
||||||
h_errno_tls = tls_allocate();
|
h_errno_tls = tls_allocate();
|
||||||
@@ -39,16 +41,17 @@ _EXPORT void _init()
|
|||||||
_EXPORT void _fini()
|
_EXPORT void _fini()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
_EXPORT void initialize_before(void)
|
_EXPORT void initialize_before(void)
|
||||||
{
|
{
|
||||||
h_errno_tls = tls_allocate();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_EXPORT void terminate_after(void)
|
_EXPORT void terminate_after(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_EXPORT int closesocket(int sock)
|
_EXPORT int closesocket(int sock)
|
||||||
{
|
{
|
||||||
return close(sock);
|
return close(sock);
|
||||||
|
|||||||
Reference in New Issue
Block a user