From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8867 invoked by alias); 24 Aug 2018 13:12:34 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 5965 invoked by uid 10080); 24 Aug 2018 13:12:33 -0000 Date: Fri, 24 Aug 2018 13:12:00 -0000 Message-ID: <20180824131233.5961.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] RTEMS: Introduce X-Act-Checkin: newlib-cygwin X-Git-Author: Sebastian Huber X-Git-Refname: refs/heads/master X-Git-Oldrev: 0c0dd285969ace58bd1265f4c2ebd75ea087b2ce X-Git-Newrev: 764d748c9cc940cee08cdb22c19c2bc3a008750e X-SW-Source: 2018-q3/txt/msg00096.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=764d748c9cc940cee08cdb22c19c2bc3a008750e commit 764d748c9cc940cee08cdb22c19c2bc3a008750e Author: Sebastian Huber Date: Wed Aug 8 12:06:48 2018 +0200 RTEMS: Introduce This helps to avoid Newlib updates due to FreeBSD kernel space changes. Signed-off-by: Sebastian Huber Diff: --- newlib/libc/sys/rtems/include/net/if.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/newlib/libc/sys/rtems/include/net/if.h b/newlib/libc/sys/rtems/include/net/if.h index b2e2641..54bb909 100644 --- a/newlib/libc/sys/rtems/include/net/if.h +++ b/newlib/libc/sys/rtems/include/net/if.h @@ -579,13 +579,6 @@ struct ifrsshash { #endif /* __BSD_VISIBLE */ -#ifdef _KERNEL -#ifdef MALLOC_DECLARE -MALLOC_DECLARE(M_IFADDR); -MALLOC_DECLARE(M_IFMADDR); -#endif -#endif - #ifndef _KERNEL struct if_nameindex { unsigned int if_index; /* 1, 2, ... */ @@ -599,4 +592,8 @@ struct if_nameindex *if_nameindex(void); unsigned int if_nametoindex(const char *); __END_DECLS #endif +#ifdef _KERNEL +/* Header file provided outside of Newlib */ +#include +#endif #endif /* !_NET_IF_H_ */