Commit a80c5133 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

ipv4: work around ppsi htons breakage

parent 392a6317
......@@ -7,11 +7,15 @@
* Released according to the GNU GPL, version 2 or any later version.
*/
#include <string.h>
#include "endpoint.h"
#include "endpoint.h"
#include "ipv4.h"
#include "ptpd_netif.h"
#ifndef htons
#define htons(x) x
#endif
static wr_socket_t *arp_socket;
#define ARP_HTYPE 0
......
......@@ -14,6 +14,10 @@
#include "hw/memlayout.h"
#include "hw/etherbone-config.h"
#ifndef htons
#define htons(x) x
#endif
int needIP = 1;
static uint8_t myIP[4];
static wr_socket_t *ipv4_socket;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment