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.
This commit is contained in:
parent
05480c229a
commit
f7d5c8ff8d
2 changed files with 6 additions and 0 deletions
|
@ -69,8 +69,10 @@
|
|||
#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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue