X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstdlib.in.h;h=60c10bd0377a174132f8a70603111f2dfb813d4a;hb=3b7b97813fbb7f37f07f2acb8e0b0106efa3bf93;hp=cb55a525734239e880bedcda81f9244a2a3f9a6b;hpb=3e8e7f402892d81ed5b20597b2c1c70723b82bb2;p=pspp diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index cb55a52573..60c10bd037 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -349,6 +349,22 @@ _GL_WARN_ON_USE (mkstemps, "mkstemps is unportable - " # endif #endif +#if @GNULIB_PTSNAME@ +/* Return the pathname of the pseudo-terminal slave associated with + the master FD is open on, or NULL on errors. */ +# if !@HAVE_PTSNAME@ +_GL_FUNCDECL_SYS (ptsname, char *, (int fd)); +# endif +_GL_CXXALIAS_SYS (ptsname, char *, (int fd)); +_GL_CXXALIASWARN (ptsname); +#elif defined GNULIB_POSIXCHECK +# undef ptsname +# if HAVE_RAW_DECL_PTSNAME +_GL_WARN_ON_USE (ptsname, "ptsname is not portable - " + "use gnulib module ptsname for portability"); +# endif +#endif + #if @GNULIB_PUTENV@ # if @REPLACE_PUTENV@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE)