libutil: add O_NOCTTY back to old pty open code
[minix.git] / lib / libc / libcincludes.mk
blob66afcc3b990179f433361ccfa3d56badac722fd4
1 # $NetBSD: libcincludes.mk,v 1.1 2008/10/26 07:28:06 mrg Exp $
3 # Makefile fragment shared across several parts that want to look
4 # inside libc's include tree.
6 .if defined(LIBC_MACHINE_ARCH) && \
7 exists(${NETBSDSRCDIR}/lib/libc/arch/${LIBC_MACHINE_ARCH}/SYS.h)
8 ARCHSUBDIR= ${LIBC_MACHINE_ARCH}
9 .elif exists(${NETBSDSRCDIR}/lib/libc/arch/${MACHINE_ARCH}/SYS.h)
10 ARCHSUBDIR= ${MACHINE_ARCH}
11 .elif exists(${NETBSDSRCDIR}/lib/libc/arch/${MACHINE_CPU}/SYS.h)
12 ARCHSUBDIR= ${MACHINE_CPU}
13 .else
14 .BEGIN:
15 @echo no ARCHDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
16 @false
17 .endif
19 ARCHDIR= ${NETBSDSRCDIR}/lib/libc/arch/${ARCHSUBDIR}