From: Gianluca Guida Date: Mon, 14 Feb 2011 15:10:57 +0000 (+0000) Subject: Use __NBSD_LIBC to specialize common headers for NetBSD headers compilation. X-Git-Tag: v3.2.0~674 X-Git-Url: http://zhaoyanbai.com/repos/doc/man.3.txt?a=commitdiff_plain;h=f7d5c8ff8d40a12250b902e41647d2de8f1d1bdf;p=minix.git 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. --- 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 */