network: Use kernel/user space header files

Add and use <machine/rtems-bsd-kernel-space.h> and
<machine/rtems-bsd-user-space.h> similar to the libbsd to avoid command
line defines and defines scattered throught the code base.

Simplify cpukit/libnetworking/Makefile.am.

Update #3375.
This commit is contained in:
Sebastian Huber
2018-09-07 06:19:02 +02:00
parent 43fb904e47
commit cb682532cf
178 changed files with 483 additions and 221 deletions

View File

@@ -10,7 +10,7 @@
* Copyright (C) 2011 Sebastien Bourdeauducq
*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
#include <machine/rtems-bsd-kernel-space.h>
#define RTEMS_STATUS_CHECKS_USE_PRINTK
#include <bsp.h>

View File

@@ -12,8 +12,7 @@
* Micro-Research Finland Oy
*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
#define _KERNEL
#include <machine/rtems-bsd-kernel-space.h>
#include <rtems.h>
#include <bsp.h>