Quick update. I manage to compile it by adding this line on the top:
#include <arpa/inet.h>
But now I am unable to connect. I get those errors:
(base) ➜ RGMII_AT_Client ./quectel_client
RGMII-AT Client Up => 192.168.225.1:1555
Can Not Connect To => 192.168.225.1:1555
Can Not Connect To => 192.168.225.1:1555
Can Not Connect To => 192.168.225.1:155
I can connect with telnet, but I get no response from at commands.