[ . . . ] x86_64-gentoo-freebsd9.0-gcc -DHAVE_CONFIG_H -I. -I.. -I../lib -DCONFDIR=\"/etc/minicom\" -DLOCALEDIR=\"/usr/share/locale\" -w -O2 -march=native -fno-strict-aliasing -pipe -W -Wall -Wextra -std=gnu99 -c main.c main.c: In function 'get_alrm': main.c:115:11: error: 'ETIME' undeclared (first use in this function) main.c:115:11: note: each undeclared identifier is reported only once for each function it appears in gmake[2]: *** [main.o] Error 1 [ . . . ]
I found this in mysql/my_pthread.h: #define ETIME ETIMEDOUT /* For FreeBSD */ A added "-DETIME=ETIMEDOUT" to CFLAGS and minicom compiles fine.
It would be better to fix it by a patch and send it to upstream. Could you send it if possible.
I did it: https://alioth.debian.org/tracker/index.php?func=detail&aid=313495&group_id=30018&atid=100031
Patch was committed to the FreeBSD ports: http://www.freebsd.org/cgi/cvsweb.cgi/ports/comms/minicom/files/patch-src-main.c?rev=1.1;content-type=text%2Fplain I don't know how to this committed to minicom mainline...
Sorry, I was misunderstood Alioth tracker webpage style :) The modification is in minicom repository too.
(CC'ing to maintiaer to notice the change) I'll add the patch above in a week. Thanks.
(In reply to comment #6) > (CC'ing to maintiaer to notice the change) I'll add the patch above in a > week. Thanks. Go for it.
Patch applied. Thanks!