summaryrefslogtreecommitdiff
path: root/package/nbd/nbd.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/nbd/nbd.mk')
-rw-r--r--package/nbd/nbd.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/nbd/nbd.mk b/package/nbd/nbd.mk
index d9d0a8546..452ed3429 100644
--- a/package/nbd/nbd.mk
+++ b/package/nbd/nbd.mk
@@ -4,12 +4,18 @@
#
#############################################################
-NBD_VERSION = 2.9.24
+NBD_VERSION = 3.0
NBD_SOURCE = nbd-$(NBD_VERSION).tar.bz2
NBD_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/nbd/
NBD_CONF_OPT = $(if $(BR2_LARGEFILE),--enable-lfs,--disable-lfs)
NBD_DEPENDENCIES = libglib2
+ifeq ($(BR2_TOOLCHAIN_BUILDROOT)$(BR2_TOOLCHAIN_EXTERNAL_UCLIBC)$(BR2_TOOLCHAIN_CTNG_uClibc),y)
+# We have linux/falloc.h
+# but uClibc lacks fallocate(2) which is a glibc-ism
+NBD_CONF_ENV = ac_cv_header_linux_falloc_h=no
+endif
+
ifneq ($(BR2_NBD_CLIENT),y)
NBD_TOREMOVE += nbd-client
endif