]> Zhao Yanbai Git Server - minix.git/commitdiff
Use __NBSD_LIBC to specialize common headers for NetBSD headers compilation.
authorGianluca Guida <gianluca@minix3.org>
Mon, 14 Feb 2011 15:10:57 +0000 (15:10 +0000)
committerGianluca Guida <gianluca@minix3.org>
Mon, 14 Feb 2011 15:10:57 +0000 (15:10 +0000)
This patch contains the required changes (under __NBSD_LIBC definition) of the common headers to compile the NetBSD libc.

common/include/minix/ansi.h
common/include/termios.h

index 7ff8e78555f0822ac3661b4813155d5419ac760b..ede54fa330d20619221ef00abbfd463f2b2938ee 100644 (file)
 #define _POSIX_SOURCE  1
 #endif
 
+#ifndef __NBSD_LIBC
 /* What is a va_list? */
 #include <stdarg.h>
 #define _BSD_VA_LIST_ va_list
+#endif /* !__NBSD_LIBC */
 
 #endif /* _MINIX_ANSI_H */
index a0b0f65171363c1bc1099362ee3de96c8a4eac9c..5354c52308f15b54b0e04dfd4c478714b08a2ede 100644 (file)
@@ -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 <unistd.h> 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 */