From f1fdda45423a0133094840c0367aef1b026635d5 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 31 Oct 2017 15:59:19 +0100 Subject: Fix build failures if MAXHOSTNAMELEN or MAXPATHLEN is not defined Signed-off-by: Denys Vlasenko --- util-linux/fdisk_osf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util-linux') 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 @@ sync_disks(void) static void xbsd_write_bootstrap(void) { +#ifndef MAXPATHLEN +# define MAXPATHLEN 1024 +#endif char path[MAXPATHLEN]; const char *bootdir = BSD_LINUX_BOOTDIR; const char *dkbasename; -- cgit v1.1