FYI,

Bertram


----- Forwarded message from Thomas Dickey <dickey / xxxxx> -----

Date: Mon, 1 Jun 2020 14:31:47 -0400 (EDT)
From: Thomas Dickey <dickey / xxxxx>
To: Bertram Scharpf <lists / bertram-scharpf.de>
Subject: Re: Function getlogin_r()'s protoype

----- Original Message -----
| From: "Bertram Scharpf" <lists / bertram-scharpf.de>
| To: "freebsd-questions" <freebsd-questions / freebsd.org>
| Sent: Monday, June 1, 2020 1:21:03 PM
| Subject: Function getlogin_r()'s protoype

| 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?

agreeing - 

https://pubs.opengroup.org/onlinepubs/9699919799/functions/getlogin_r.html

----- End forwarded message -----

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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>