diff options
author | jhb <jhb@FreeBSD.org> | 2002-11-27 19:30:50 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-11-27 19:30:50 +0000 |
commit | cf60e9b4b99cac9378b5a4b6ceafbbc1ee25248f (patch) | |
tree | dd21a2df3560637e43d0bcb4f62d864a073909b9 /usr.sbin/sysinstall/sysinstall.h | |
parent | f75a5d12c364caf1378631ab07fe6266db0e9d9f (diff) | |
download | FreeBSD-src-cf60e9b4b99cac9378b5a4b6ceafbbc1ee25248f.zip FreeBSD-src-cf60e9b4b99cac9378b5a4b6ceafbbc1ee25248f.tar.gz |
Add some helper macros to make #ifdef's in sysinstall easier to read
and more maintainable.
- WITH_SYSCONS: defined on all arch's that support syscons (currently i386,
alpha, and ia64)
- WITH_MICE: defined on all arch's that support moused(8) (currently i386,
alpha, and ia64)
- WITH_SLICES: defined on all arch's that use disk slices (currently i386
and ia64)
- WITH_LINUX: defined on all arch's that support Linux binary compat
(currently i386 and alpha)
Approved by: re
Diffstat (limited to 'usr.sbin/sysinstall/sysinstall.h')
-rw-r--r-- | usr.sbin/sysinstall/sysinstall.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/sysinstall.h b/usr.sbin/sysinstall/sysinstall.h index e8653c7..6865809 100644 --- a/usr.sbin/sysinstall/sysinstall.h +++ b/usr.sbin/sysinstall/sysinstall.h @@ -54,9 +54,23 @@ /*** Defines ***/ +#if defined(__i386__) || defined(__alpha__) || defined(__ia64__) +#define WITH_SYSCONS +#define WITH_MICE +#endif + +#if defined(__i386__) || defined(__ia64__) +#define WITH_SLICES +#endif + +#if defined(__i386__) || defined(__alpha__) +#define WITH_LINUX +#endif + #if defined(PC98) #define PCCARD_ARCH 1 /* Support PCCARD installations */ #endif + /* device limits */ #define DEV_NAME_MAX 64 /* The maximum length of a device name */ #define DEV_MAX 100 /* The maximum number of devices we'll deal with */ |