summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-10-05 18:43:18 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-10-05 18:46:45 +0200
commitf5892f0718293734e5f22747c29e17d57c08810a (patch)
treeffdc97a2b63c1bd49f76720f06d7485a3a3573d9
parentb5c79c880c406ed8a2b57645ab1453de19b9b0fe (diff)
downloadgnutls-tmp-gnutls-2-12-x-no-atfork.tar.gz
Removed the unused _gnutls_atfork() function.tmp-gnutls-2-12-x-no-atfork
-rw-r--r--configure.ac2
-rw-r--r--lib/system.c22
-rw-r--r--lib/system.h2
3 files changed, 2 insertions, 24 deletions
diff --git a/configure.ac b/configure.ac
index d8542590db..87f367b8ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,6 +86,8 @@ AC_DEFINE([HAVE_ERRNO_H], 1, [Hard-code for src/cfg/.])
AC_CHECK_FUNCS(fork,,)
AM_CONDITIONAL(HAVE_FORK, test "$ac_cv_func_fork" != "no")
+AC_CHECK_FUNCS([__register_atfork],,)
+
dnl Check for p11-kit
AC_ARG_WITH(p11-kit,
AS_HELP_STRING([--without-p11-kit],
diff --git a/lib/system.c b/lib/system.c
index 9f3253463d..4327bc2f38 100644
--- a/lib/system.c
+++ b/lib/system.c
@@ -149,14 +149,6 @@ 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
@@ -215,13 +207,6 @@ 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
@@ -250,13 +235,6 @@ 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 */
gnutls_time_func gnutls_time = time;
diff --git a/lib/system.h b/lib/system.h
index 0cedded6c6..7555851392 100644
--- a/lib/system.h
+++ b/lib/system.h
@@ -31,8 +31,6 @@ ssize_t system_read_peek (gnutls_transport_ptr ptr, void *data,
#endif
#endif
-int _gnutls_atfork (void (*prepare) (void), void (*parent) (void),
- void (*child) (void));
extern gnutls_time_func gnutls_time;
#endif /* SYSTEM_H */