Funtion getlogin_r()'s protoype

Bertram Scharpf lists at
Mon Jun 1 17:21:07 UTC 2020


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

  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 Scharpf
Stuttgart, Deutschland/Germany

More information about the freebsd-questions mailing list