我一直在尝试在 Ubuntu 上编译 systrace (1.6g)。当我使用 libevent 2.0.16 时,出现以下编译错误:
In file included from /usr/include/netdb.h:28,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from systrace.c:67:
/usr/include/netinet/in.h:141: error: two or more data types in declaration specifiers
/usr/include/netinet/in.h:141: error: two or more data types in declaration specifiers
这些是 /usr/include/netinet/in.h 中的相应行:
/* Internet address. */
typedef uint32_t in_addr_t;
struct in_addr
{
in_addr_t s_addr;
};
谁能提供有关我可以在 netinet/in.h 中更改哪些内容以使其正常工作的任何见解?