diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-10-31 15:59:19 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-10-31 15:59:19 +0100 |
commit | f1fdda45423a0133094840c0367aef1b026635d5 (patch) | |
tree | ed14a666e2097ebfd28a24e9ff2a4256d142b0b1 /util-linux/fdisk_osf.c | |
parent | 6bcc2c0f6cb868232ec06231aa37a3fa65c59d22 (diff) | |
download | busybox-w32-f1fdda45423a0133094840c0367aef1b026635d5.tar.gz busybox-w32-f1fdda45423a0133094840c0367aef1b026635d5.tar.bz2 busybox-w32-f1fdda45423a0133094840c0367aef1b026635d5.zip |
Fix build failures if MAXHOSTNAMELEN or MAXPATHLEN is not defined
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/fdisk_osf.c')
-rw-r--r-- | util-linux/fdisk_osf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c index 1141b7801..1328c1fcd 100644 --- a/util-linux/fdisk_osf.c +++ b/util-linux/fdisk_osf.c | |||
@@ -709,6 +709,9 @@ sync_disks(void) | |||
709 | static void | 709 | static void |
710 | xbsd_write_bootstrap(void) | 710 | xbsd_write_bootstrap(void) |
711 | { | 711 | { |
712 | #ifndef MAXPATHLEN | ||
713 | # define MAXPATHLEN 1024 | ||
714 | #endif | ||
712 | char path[MAXPATHLEN]; | 715 | char path[MAXPATHLEN]; |
713 | const char *bootdir = BSD_LINUX_BOOTDIR; | 716 | const char *bootdir = BSD_LINUX_BOOTDIR; |
714 | const char *dkbasename; | 717 | const char *dkbasename; |