summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-10-23 21:17:25 +0200
committerJulian Andres Klode <jak@debian.org>2015-10-30 14:20:43 +0100
commit2a0cae347a058f0cc5d81477f75ed0c12b1e54e3 (patch)
tree0c58c076732d51d781cd0e54de4f7ad2ca1307b1 /configure.ac
parent2609e7cea39fb32a999acef014ea9ce6e9b3d141 (diff)
dpkgpm: Use ptsname_r() instead of ptsname() to be thread-safe
This function only exists on a limited number of platforms, so we add a configure check to make sure it exists. Gbp-Dch: ignore
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5c880845c..8bf87754b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -180,6 +180,9 @@ AC_SUBST(HAVE_GETRESGID)
AC_SUBST(HAVE_SETRESUID)
AC_SUBST(HAVE_SETRESGID)
+AC_CHECK_FUNC(ptsname_r)
+AC_SUBST(HAVE_PTSNAME_R)
+
dnl Check for doxygen
AC_PATH_PROG(DOXYGEN, doxygen)