]> granicus.if.org Git - sudo/commitdiff
Define _REENTRANT for HP-UX when we add -lpthread to SUDO_LIBS.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 7 Mar 2013 16:54:17 +0000 (11:54 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 7 Mar 2013 16:54:17 +0000 (11:54 -0500)
Fixes a problem with errno sometimes not being set on error on HP-UX.

configure
configure.in

index c0ea373bd1b48d41feab26654cece8583e5b5e8b..b4be89161c918c772af8e2cd6eff1356504febb1 100755 (executable)
--- a/configure
+++ b/configure
@@ -20401,6 +20401,7 @@ if test "x$ac_cv_lib_pthread_main" = xyes; then :
   SUDO_LIBS="${SUDO_LIBS} -lpthread"
 fi
 
+       OSDEFS="${OSDEFS} -D_REENTRANT"
        ;;
 esac
 
index e113bf5334bac955664305b46901f9a469287819..f6db2e5f324fca745c45f592ae1914232983cfc4 100644 (file)
@@ -3297,6 +3297,7 @@ fi
 case "$host" in
     *-*-hpux*)
        AC_CHECK_LIB(pthread, main, [SUDO_LIBS="${SUDO_LIBS} -lpthread"])
+       OSDEFS="${OSDEFS} -D_REENTRANT"
        ;;
 esac