Bruno Haible writes:
> The reason is that libgnu.a is not being included in the link
> line. This fixes it:
Thanks. Strange that it didn't happen on my system.
/Simon
Simon Josefsson wrote:
> > Subject: [PATCH] Add pty module for forkpty and openpty.
>
> I have pushed that patch
I get a link error when building all of gnulib together:
gcc -std=gnu99 -g -O2 -Wl,--as-needed -o test-pty test-pty.o -lutil -lm
test-pty.o: In function `main':
/home/bruno/
Simon Josefsson writes:
> Subject: [PATCH] Add pty module for forkpty and openpty.
I have pushed that patch -- it added a new module, so it should have
minimal impact on existing code. If there is any problem with it, we'll
find out when InetUtils starts to use it.
/Simon
Bruno Haible writes:
> Hi Simon,
>
>> > Darwin has forkpty in util.h instead of the glibc name of pty.h. I'm
>> > working on a gnulib module to provide compatibility mappings... stay
>> > tuned.
>>
>> Here it is. Tested on glibc debian and Mac OS X 10.5.
>
> As far as I can see the portability
Thanks for review Bruno. It seems the issue is more complicated, which
I kind of guessed.
Bruno Haible writes:
> Actually, since openpty and forkpty are glibc function, therefore two files
> doc/glibc-functions/openpty.texi
> doc/glibc-functions/forkpty.texi
> should be created. They escape
Hi Simon,
> > Darwin has forkpty in util.h instead of the glibc name of pty.h. I'm
> > working on a gnulib module to provide compatibility mappings... stay
> > tuned.
>
> Here it is. Tested on glibc debian and Mac OS X 10.5.
As far as I can see the portability situation of openpty and forkpty