From bd3ade31fa44d2b57c72f911781dbdf245346041 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Mon, 22 Apr 2013 21:16:02 +0200 Subject: [PATCH] PPP, added define for u_long, u_int, u_short, u_char for compilers or toolchains which don't have them --- src/include/netif/ppp/ppp_impl.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/include/netif/ppp/ppp_impl.h b/src/include/netif/ppp/ppp_impl.h index 06d40b6b..19af4429 100644 --- a/src/include/netif/ppp/ppp_impl.h +++ b/src/include/netif/ppp/ppp_impl.h @@ -47,6 +47,14 @@ #include "lwip/timers.h" #include "lwip/sio.h" +/* Type definitions for BSD code. */ +#ifndef __u_char_defined +typedef unsigned long u_long; +typedef unsigned int u_int; +typedef unsigned short u_short; +typedef unsigned char u_char; +#endif + #include "ppp.h" #include "pppdebug.h"