mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 21:09:26 +08:00
Move __FreeBSD__ define to header files
This commit is contained in:
parent
f574d27f8f
commit
e48f60383e
1
Makefile
1
Makefile
@ -22,7 +22,6 @@ CFLAGS += -Ifreebsd/lib/libkvm
|
|||||||
CFLAGS += -Ifreebsd/lib/libmemstat
|
CFLAGS += -Ifreebsd/lib/libmemstat
|
||||||
CFLAGS += -Ifreebsd/lib/libipsec
|
CFLAGS += -Ifreebsd/lib/libipsec
|
||||||
CFLAGS += -Itestsuite/include
|
CFLAGS += -Itestsuite/include
|
||||||
CFLAGS += -D__FreeBSD__
|
|
||||||
CFLAGS += -D__DBINTERFACE_PRIVATE
|
CFLAGS += -D__DBINTERFACE_PRIVATE
|
||||||
CFLAGS += -DINET6
|
CFLAGS += -DINET6
|
||||||
CFLAGS += -w
|
CFLAGS += -w
|
||||||
|
@ -421,7 +421,6 @@ class ModuleManager:
|
|||||||
'CFLAGS += -Ifreebsd/lib/libmemstat\n' \
|
'CFLAGS += -Ifreebsd/lib/libmemstat\n' \
|
||||||
'CFLAGS += -Ifreebsd/lib/libipsec\n' \
|
'CFLAGS += -Ifreebsd/lib/libipsec\n' \
|
||||||
'CFLAGS += -Itestsuite/include\n' \
|
'CFLAGS += -Itestsuite/include\n' \
|
||||||
'CFLAGS += -D__FreeBSD__\n' \
|
|
||||||
'CFLAGS += -D__DBINTERFACE_PRIVATE\n' \
|
'CFLAGS += -D__DBINTERFACE_PRIVATE\n' \
|
||||||
'CFLAGS += -DINET6\n' \
|
'CFLAGS += -DINET6\n' \
|
||||||
'CFLAGS += -w\n' \
|
'CFLAGS += -w\n' \
|
||||||
|
@ -47,6 +47,8 @@
|
|||||||
#define __GLOBL1(sym) __asm__(".globl " #sym)
|
#define __GLOBL1(sym) __asm__(".globl " #sym)
|
||||||
#define __GLOBL(sym) __GLOBL1(sym)
|
#define __GLOBL(sym) __GLOBL1(sym)
|
||||||
|
|
||||||
|
#define __FreeBSD__ 1
|
||||||
|
|
||||||
/* General define to activate BSD kernel parts */
|
/* General define to activate BSD kernel parts */
|
||||||
#define _KERNEL 1
|
#define _KERNEL 1
|
||||||
|
|
||||||
|
@ -40,6 +40,8 @@
|
|||||||
#ifndef _RTEMS_BSD_MACHINE_RTEMS_BSD_USER_SPACE_H_
|
#ifndef _RTEMS_BSD_MACHINE_RTEMS_BSD_USER_SPACE_H_
|
||||||
#define _RTEMS_BSD_MACHINE_RTEMS_BSD_USER_SPACE_H_
|
#define _RTEMS_BSD_MACHINE_RTEMS_BSD_USER_SPACE_H_
|
||||||
|
|
||||||
|
#define __FreeBSD__ 1
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user