From 01bf2fcf57944104f9a774c8716950f397d666ce Mon Sep 17 00:00:00 2001 From: Dmitri Pal Date: Wed, 7 Oct 2009 09:45:39 -0400 Subject: ELAPI Compatibility code for getifaddr() Addreses ticket #94 Actually works pretty well. To try use --enable-compat when build ELAPI. It will use compatibility code instead of getifaddr(). The trick in the elapi_ioctl.h with memory allocation is taken from Stevens book. --- common/elapi/elapi_basic.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'common/elapi/elapi_basic.h') diff --git a/common/elapi/elapi_basic.h b/common/elapi/elapi_basic.h index 8d23c7db..480ef1bf 100644 --- a/common/elapi/elapi_basic.h +++ b/common/elapi/elapi_basic.h @@ -21,10 +21,7 @@ #define ELAPI_BASIC_H #include - -#ifndef EOK -#define EOK 0 -#endif +#include "elapi_defines.h" /* Generic data structure for the data output */ struct elapi_data_out { -- cgit