]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Create.c: fix uclibc build main master
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 12 Apr 2024 16:45:13 +0000 (18:45 +0200)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Mon, 15 Apr 2024 06:34:58 +0000 (08:34 +0200)
commit52bead95d2957437c691891fcdc49bd6afccdd49
tree215fdd019f8ce6f7a919cf37fae0b98163f93787
parent256edaef3d43a112356762aaea4a48f021f45aec
Create.c: fix uclibc build

Define FALLOC_FL_ZERO_RANGE if needed as FALLOC_FL_ZERO_RANGE is only
defined for aarch64 on uclibc-ng resulting in the following or1k build
failure since commit 577fd10486d8d1472a6b559066f344ac30a3a391:

Create.c: In function 'write_zeroes_fork':
Create.c:155:35: error: 'FALLOC_FL_ZERO_RANGE' undeclared (first use in this function)
  155 |                 if (fallocate(fd, FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE,
      |                                   ^~~~~~~~~~~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/0e04bcdb591ca5642053e1f7e31384f06581e989

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Create.c