gettimeofday: port recent C++ fix to Emacs
[gnulib.git] / modules / ptsname
index 58560d6..2f67966 100644 (file)
@@ -8,11 +8,11 @@ m4/ptsname.m4
 Depends-on:
 stdlib
 extensions
-ttyname_r       [test $HAVE_PTSNAME = 0]
+ptsname_r       [test $HAVE_PTSNAME = 0]
 
 configure.ac:
 gl_FUNC_PTSNAME
-if test $HAVE_PTSNAME = 0; then
+if test $HAVE_PTSNAME = 0 || test $REPLACE_PTSNAME = 1; then
   AC_LIBOBJ([ptsname])
   gl_PREREQ_PTSNAME
 fi