hide block_t behind _MINIX (for gcc)
This commit is contained in:
parent
201031fb38
commit
41ab295654
5 changed files with 8 additions and 1 deletions
|
@ -114,12 +114,14 @@ typedef u32_t big_nlink_t;
|
|||
typedef u32_t big_uid_t;
|
||||
|
||||
|
||||
#ifdef _MINIX
|
||||
/* some Minix specific types that do not conflict with posix */
|
||||
typedef u32_t zone_t; /* zone number */
|
||||
typedef u32_t block_t; /* block number */
|
||||
typedef u32_t bit_t; /* bit number in a bit map */
|
||||
typedef u16_t zone1_t; /* zone number for V1 file systems */
|
||||
typedef u32_t bitchunk_t; /* collection of bits in a bitmap */
|
||||
#endif
|
||||
|
||||
/* ANSI C makes writing down the promotion of unsigned types very messy. When
|
||||
* sizeof(short) == sizeof(int), there is no promotion, so the type stays
|
||||
|
|
|
@ -15,7 +15,7 @@ LDADD+= -ltimers -lsys -lexec
|
|||
|
||||
CFLAGS += -D__kernel__
|
||||
|
||||
CPPFLAGS+= -fno-stack-protector -D_NETBSD_SOURCE
|
||||
CPPFLAGS+= -fno-stack-protector -D_NETBSD_SOURCE -D_MINIX
|
||||
LDFLAGS+= -T $(LINKERSCRIPT)
|
||||
LDFLAGS+= -nostdlib -L${DESTDIR}/${LIBDIR}
|
||||
LDADD+= -lminlib
|
||||
|
|
|
@ -3,4 +3,6 @@
|
|||
PROG= boot_monitor
|
||||
CLEANFILES= lib
|
||||
|
||||
CPPFLAGS+= -D_MINIX
|
||||
|
||||
.include <../Makefile.boot>
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
|
||||
FS=ext2fs
|
||||
CLEANFILES= lib
|
||||
CPPFLAGS+= -D_MINIX
|
||||
|
||||
.include <../Makefile.bootxx>
|
||||
|
|
|
@ -3,6 +3,8 @@ SRCS= mkfs.c
|
|||
BINDIR= /sbin
|
||||
MAN=
|
||||
|
||||
CPPFLAGS+= -D_MINIX
|
||||
|
||||
LDADD?= -lminlib -lcompat_minix
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
Loading…
Reference in a new issue