2005-12-11 15:16:03 +03:00
|
|
|
/* $NetBSD: disklabel.h,v 1.3 2005/12/11 12:17:06 christos Exp $ */
|
2000-12-11 21:19:12 +03:00
|
|
|
#ifndef _DREAMCAST_DISKLABEL_H_
|
|
|
|
#define _DREAMCAST_DISKLABEL_H_
|
|
|
|
|
Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.
To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/. That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such. I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
2005-06-12 23:46:15 +04:00
|
|
|
#if HAVE_NBTOOL_CONFIG_H
|
|
|
|
#include <nbinclude/sh3/disklabel.h>
|
|
|
|
#else
|
2000-12-11 21:19:12 +03:00
|
|
|
#include <sh3/disklabel.h>
|
Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.
To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/. That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such. I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
2005-06-12 23:46:15 +04:00
|
|
|
#endif /* HAVE_NBTOOL_CONFIG_H */
|
2000-12-11 21:19:12 +03:00
|
|
|
|
|
|
|
#endif /* _DREAMCAST_DISKLABEL_H_ */
|