From f7d5c8ff8d40a12250b902e41647d2de8f1d1bdf Mon Sep 17 00:00:00 2001 From: Gianluca Guida Date: Mon, 14 Feb 2011 15:10:57 +0000 Subject: [PATCH] Use __NBSD_LIBC to specialize common headers for NetBSD headers compilation. This patch contains the required changes (under __NBSD_LIBC definition) of the common headers to compile the NetBSD libc. --- common/include/minix/ansi.h | 2 ++ common/include/termios.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/common/include/minix/ansi.h b/common/include/minix/ansi.h index 7ff8e7855..ede54fa33 100644 --- a/common/include/minix/ansi.h +++ b/common/include/minix/ansi.h @@ -69,8 +69,10 @@ #define _POSIX_SOURCE 1 #endif +#ifndef __NBSD_LIBC /* What is a va_list? */ #include #define _BSD_VA_LIST_ va_list +#endif /* !__NBSD_LIBC */ #endif /* _MINIX_ANSI_H */ diff --git a/common/include/termios.h b/common/include/termios.h index a0b0f6517..5354c5230 100644 --- a/common/include/termios.h +++ b/common/include/termios.h @@ -74,6 +74,9 @@ struct termios { #define VSTART 9 /* cc_c[VSTART] = START char (^S) */ #define VSTOP 10 /* cc_c[VSTOP] = STOP char (^Q) */ +#ifdef __NBSD_LIBC +/* This is defined in in NetBSD headers. +#else /* !__NBSD_LIBC */ #define _POSIX_VDISABLE (cc_t)0xFF /* You can't even generate this * character with 'normal' keyboards. * But some language specific keyboards @@ -81,6 +84,7 @@ struct termios { * 256 are used, so cc_t should be a * short... */ +#endif /* !__NBSD_LIBC */ /* Values for the baud rate settings. POSIX Table 7-6. */ #define B0 0x0000 /* hang up the line */ -- 2.44.0