_MINIX_SYSTEM - fixes for in-minix crossbuild

. define _MINIX_SYSTEM for all system code from minix.service.mk
	. hide some system-level declarations and definitions
	  behind _MINIX_SYSTEM to cleanly fix host tool build problems on
	  Minix (such as: NONE being defined and paddr_t being used but not
	  declared)
	. the similar definition _SYSTEM is unsuitable as it changes the
	  values of errno definitions

Change-Id: I407de79e2575115243a074b16e79546a279cfa3e
This commit is contained in:
Ben Gras
2014-03-05 12:21:55 +01:00
committed by Lionel Sambuc
parent aa6ee31737
commit 3f38115c7b
38 changed files with 63 additions and 13 deletions

View File

@@ -1,4 +1,6 @@
#define _MINIX_SYSTEM
#include <stdio.h>
#include <minix/endpoint.h>
#include <minix/sys_config.h>

View File

@@ -3,6 +3,8 @@
* Exercise the caching functionality of libminixfs in isolation.
*/
#define _MINIX_SYSTEM
#include <minix/libminixfs.h>
#include <minix/sysutil.h>
#include <minix/syslib.h>

View File

@@ -4,6 +4,8 @@
* in testvm.c, started as a service by this test program.
*/
#define _MINIX_SYSTEM 1
#include <minix/libminixfs.h>
#include <minix/sysutil.h>
#include <minix/syslib.h>