[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] Unknown "ctermid" function under OS/2 emx/gcc
From: |
YANAGIHARA Nobuyuki |
Subject: |
Re: [Lynx-dev] Unknown "ctermid" function under OS/2 emx/gcc |
Date: |
Thu, 20 Oct 2005 11:10:43 +0900 |
Thomas Dickey <address@hidden> a ecrit:
>On Wed, Oct 19, 2005 at 08:36:08PM +0900, YANAGIHARA Nobuyuki wrote:
>> I've tried to build lynx2.8.6dev14 under OS/2 warp emx/gcc environment.
>> Configure and compile are done successful.
>> At the link, an error occurs: "ctermid" is missing.
>> because "ctermid" function is not supported undex emx/gcc.
>>
>> Could you establish a new keyword such as "HAVE_CTERMID" to test
>> in the configure process, in order to avoid the linkage failure
>> under OS/2 emx/gcc.
>
>I could - but I've compiled previous versions (which have the reference
>to ctermid) on OS/2 without problem. It's a POSIX function as well.
>So I'm curious to see what problem I'm working around - whether this
>is a very old emx, ec.
Yes, I can compile previous version, 2.8.6dev.13 without problem.
I use emx 0.9d fix4.
|emxrev
|EMX : revision = 61
|EMXIO : revision = 60
|EMXLIBC : revision = 63
|EMXLIBCM : revision = 64
|EMXLIBCS : revision = 64
|EMXWRAP : revision = 60
LYReopenInput() in LYUtils.c.
#ifdef HAVE_TTYNAME
if (isatty(fileno(stdout)) &&
(term_name = ttyname(fileno(stdout))) != NULL)
new_fd = open(term_name, O_RDONLY);
if (new_fd == -1 &&
isatty(fileno(stderr)) &&
(term_name = ttyname(fileno(stderr))) != NULL)
new_fd = open(term_name, O_RDONLY);
#endif
#ifdef HAVE_CTERMID
if (new_fd == -1 &&
(term_name = ctermid(NULL)) != NULL)
new_fd = open(term_name, O_RDONLY);
#endif
/ chagrin / VYL00513 at nifty.ne.jp /