cosmos72/twin

Is this a TWin problem or a FreeBSD problem?

Closed this issue · 2 comments

I have FreeBSD 13.0-RELEASE, and I can't compile TWin. When I try, I get these compiler errors:

In file included from utf8.cpp:14:
/usr/include/arpa/inet.h:106:9: error: multiple types in one declaration
  106 | typedef __socklen_t socklen_t;
      |         ^~~~~~~~~~~
In file included from utf8.cpp:11:
../../include/twautoconf.h:657:19: error: declaration does not declare anything [-fpermissive]
  657 | #define socklen_t int
      |                   ^~~
*** Error code 1

Is this a problem with FreeBSD or TWin?

It's a bug in twin's configure script - it does not seem to find FreeBSD definition of 'socklen_t' in /usr/include/arpa/inet.h

Thanks for spotting this, I will fix it as soon as possible.

fixed in commit 0fcf815