commit | f1fdda45423a0133094840c0367aef1b026635d5 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Tue Oct 31 15:59:19 2017 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Tue Oct 31 15:59:19 2017 +0100 |
tree | ed14a666e2097ebfd28a24e9ff2a4256d142b0b1 | |
parent | 6bcc2c0f6cb868232ec06231aa37a3fa65c59d22 [diff] [blame] |
Fix build failures if MAXHOSTNAMELEN or MAXPATHLEN is not defined Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c index 1141b78..1328c1f 100644 --- a/util-linux/fdisk_osf.c +++ b/util-linux/fdisk_osf.c
@@ -709,6 +709,9 @@ static void xbsd_write_bootstrap(void) { +#ifndef MAXPATHLEN +# define MAXPATHLEN 1024 +#endif char path[MAXPATHLEN]; const char *bootdir = BSD_LINUX_BOOTDIR; const char *dkbasename;