[minicom-Bugs][313495] minicom v2.6 fails to compile on Gentoo/FBSD - missing ETIME definition

minicom-bugs at alioth.debian.org minicom-bugs at alioth.debian.org
Sat Jan 14 13:27:10 UTC 2012


Bugs item #313495, was changed at 2012-01-05 22:32 by Adam Lackorzynski
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=100031&aid=313495&group_id=30018

>Status: Closed
Priority: 3
Submitted By: Vago Tibor (oreggin-guest)
>Assigned to: Adam Lackorzynski (al-guest)
Summary: minicom v2.6 fails to compile on Gentoo/FBSD - missing ETIME definition 
Category: None
Group: None
>Resolution: Fixed


Initial Comment:
The problem described at: https://bugs.gentoo.org/show_bug.cgi?id=397747

----------------------------------------------------------------------

>Comment By: Adam Lackorzynski (al-guest)
Date: 2012-01-14 14:27

Message:
Fixed.

----------------------------------------------------------------------

Comment By: Vago Tibor (oreggin-guest)
Date: 2012-01-14 01:45

Message:
As I see in FreeBSD ports they simply replaced ETIME with ETIMEDOUT with patch:

http://www.freebsd.org/cgi/cvsweb.cgi/ports/comms/minicom/files/patch-src-main.c?rev=1.1;content-type=text%2Fplain

It simply could be fixed with an IF:

#if defined (__FreeBSD__)
or
#if !defined (ETIME) && defined (ETIMEDOUT)

or in any good combinations while ETIME not defined.

BTW in BSD the error numbers are not the same as in Linux. In Linux the ETIMEDOUT is defined 110, in FreeBSd defined 60.

----------------------------------------------------------------------

Comment By: Adam Lackorzynski (al-guest)
Date: 2012-01-13 19:56

Message:
Which header needs to be included on the system?

Also, those two are not the same:
errno.h:#define ETIME           62      /* Timer expired */
errno.h:#define ETIMEDOUT       110     /* Connection timed out */


----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=100031&aid=313495&group_id=30018



More information about the minicom-devel mailing list