Avnu / OpenAvnu

OpenAvnu - an Avnu sponsored repository for Time Sensitive Network (TSN and AVB) technology

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple_listener and simple_rx don't compile - proposed solution

psow opened this issue · comments

When I tried to compile those examples I got this:
In file included from simple_rx.c:60:
../../daemons/mrpd/mrpd.h:50:13: error: two or more data types in declaration specifiers
typedef int SOCKET;

It seems that simple_listener and simple_rx both include pcap/pcap.h, and there you can find the "#define SOCKET int" line.

It works fine for me, after making the following change in mrpd.h:
#ifndef SOCKET
typedef int SOCKET;
#endif

Note: I also had to create a symlink in lib/igb_avb/lib pointing to lib directory from AVnu/igb_avb repository.