mirror of
https://repo.or.cz/socat.git
synced 2025-07-06 13:06:33 +00:00
Red Hat issue 1020203: configure checks fail with some compilers
This commit is contained in:
parent
cf39583b25
commit
fbb521e45e
15 changed files with 309 additions and 91 deletions
|
@ -229,14 +229,14 @@ int _xioopen_foxec(int xioflags, /* XIO_RDONLY etc. */
|
|||
Warn2("unlockpt(%d): %s", ptyfd, strerror(errno));
|
||||
}
|
||||
#endif /* HAVE_UNLOCKPT */
|
||||
#if HAVE_PTSNAME /* AIX, not Linux */
|
||||
#if HAVE_PROTOTYPE_LIB_ptsname /* AIX, not Linux */
|
||||
if ((tn = Ptsname(ptyfd)) == NULL) {
|
||||
Warn2("ptsname(%d): %s", ptyfd, strerror(errno));
|
||||
}
|
||||
#endif /* HAVE_PTSNAME */
|
||||
#endif /* HAVE_PROTOTYPE_LIB_ptsname */
|
||||
if (tn == NULL) {
|
||||
if ((tn = Ttyname(ptyfd)) == NULL) {
|
||||
Warn2("ttyname(%d): %s", ptyfd, strerror(errno));
|
||||
Error2("ttyname(%d): %s", ptyfd, strerror(errno));
|
||||
}
|
||||
}
|
||||
ptyname[0] = '\0'; strncat(ptyname, tn, MAXPTYNAMELEN-1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue