diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-03 18:21:44 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-03 18:21:44 +0200 |
commit | 539776d5e5e6725024e5ba619c48980b089f3415 (patch) | |
tree | 0506e4dac310a6fcde459fb04b009a7b8a98ae27 /lib/locks.c | |
parent | 6ce3391704b2d971266386b8b0c7143bf33e747d (diff) | |
download | gnutls-539776d5e5e6725024e5ba619c48980b089f3415.tar.gz |
The included pakchois will use gnutls locks and will use a portable
dlopen() to allow compilation in win32 (untested).
Diffstat (limited to 'lib/locks.c')
-rw-r--r-- | lib/locks.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/locks.c b/lib/locks.c index c758d80c06..7875119fb0 100644 --- a/lib/locks.c +++ b/lib/locks.c @@ -69,6 +69,12 @@ static int gnutls_system_mutex_unlock (void *priv) return 0; } +int _gnutls_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)) +{ + return 0; +} + + #endif /* WIN32_LOCKS */ #ifdef HAVE_PTHREAD_LOCKS @@ -123,6 +129,11 @@ static int gnutls_system_mutex_unlock (void *priv) return 0; } +int _gnutls_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)) +{ + return pthread_atfork(prepare, parent, child); +} + #endif /* PTHREAD_LOCKS */ #ifdef HAVE_NO_LOCKS @@ -147,6 +158,11 @@ static int gnutls_system_mutex_unlock (void *priv) return 0; } +int _gnutls_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)) +{ + return 0; +} + #endif /* NO_LOCKS */ mutex_init_func gnutls_mutex_init = gnutls_system_mutex_init; |