[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 00:45:07 UTC 2012
Bugs item #313495, was changed at 2012-01-05 22:32 by Vago Tibor
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=100031&aid=313495&group_id=30018
Status: Open
Priority: 3
Submitted By: Vago Tibor (oreggin-guest)
Assigned to: Nobody (None)
Summary: minicom v2.6 fails to compile on Gentoo/FBSD - missing ETIME definition
Category: None
Group: None
Resolution: None
Initial Comment:
The problem described at: https://bugs.gentoo.org/show_bug.cgi?id=397747
----------------------------------------------------------------------
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