Make unix port buildable with changes to sockets.h (include sys/time.h in cc.h only and define LWIP_TIMEVAL_PRIVATE to 0 in lwipopts.h to use unix struct timeval instead of defining an own struct)

This commit is contained in:
goldsimon 2007-12-02 15:26:35 +00:00
parent bf55cf26f1
commit ea3f796c6c
4 changed files with 10 additions and 1 deletions

View File

@ -33,7 +33,6 @@
#define __ARCH_SYS_ARCH_H__
#include <errno.h>
#include <sys/time.h>
#define SYS_MBOX_NULL NULL
#define SYS_SEM_NULL NULL

View File

@ -32,6 +32,9 @@
#ifndef __LWIPOPTS_H__
#define __LWIPOPTS_H__
/* <sys/time.h> is included in cc.h! */
#define LWIP_TIMEVAL_PRIVATE 0
/* ---------- Memory options ---------- */
/* MEM_ALIGNMENT: should be set to the alignment of the CPU for which
lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2

View File

@ -32,6 +32,9 @@
#ifndef __LWIPOPTS_H__
#define __LWIPOPTS_H__
/* <sys/time.h> is included in cc.h! */
#define LWIP_TIMEVAL_PRIVATE 0
#define NO_SYS 1
/* #define LWIP_EVENT_API 1 */

View File

@ -31,6 +31,10 @@
*/
#ifndef __LWIPOPTS_H__
#define __LWIPOPTS_H__
/* <sys/time.h> is included in cc.h! */
#define LWIP_TIMEVAL_PRIVATE 0
#define LWIP_DBG_MIN_LEVEL 0
#define LWIP_COMPAT_SOCKETS 1
#define TAPIF_DEBUG LWIP_DBG_ON