PPP,SLIP include lwip/sio.h after lwip/sys.h to prevent functions prototype collision

User port may redefine sio_* functions, we must ensure we are loading
user functions prototypes before loading default prototypes.
This commit is contained in:
Sylvain Rochet 2014-12-24 21:23:54 +01:00
parent b30faa577d
commit 7d077a2260
3 changed files with 2 additions and 3 deletions

View File

@ -38,11 +38,11 @@
#define PPP_H
#include "lwip/def.h"
#include "lwip/sio.h"
#include "lwip/stats.h"
#include "lwip/mem.h"
#include "lwip/netif.h"
#include "lwip/sys.h"
#include "lwip/sio.h"
#include "lwip/timers.h"
#if PPP_IPV6_SUPPORT
#include "lwip/ip6_addr.h"

View File

@ -45,7 +45,6 @@
#include "lwip/netif.h"
#include "lwip/def.h"
#include "lwip/timers.h"
#include "lwip/sio.h"
#include "ppp.h"
#include "pppdebug.h"

View File

@ -64,8 +64,8 @@
#include "lwip/pbuf.h"
#include "lwip/stats.h"
#include "lwip/snmp.h"
#include "lwip/sio.h"
#include "lwip/sys.h"
#include "lwip/sio.h"
#define SLIP_END 0xC0 /* 0300: start and end of every packet */
#define SLIP_ESC 0xDB /* 0333: escape start (one byte escaped data follows) */