Funtion getlogin_r()'s protoype

Bertram Scharpf lists at bertram-scharpf.de
Mon Jun 1 17:21:07 UTC 2020


Hi,

I tried to build the newest Ruby. The compilation breaks
because a function is declared differently in Linux and in
FreeBSD. The Ruby crew doesn't seem to have noticed this
yet.

  int getlogin_r(char *, size_t);   /* Linux   */
  int getlogin_r(char *, int);      /* FreeBSD */

The longer I think about it I get convinced this is a
problem of FreeBSD rather than of Ruby.

What do you think? What solution do you propose?

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de


More information about the freebsd-questions mailing list