[sheepdog] [sheepdog/sheepdog] f4863a: lib: fix the build error on smartos

Hitoshi Mitake mitake.hitoshi at gmail.com
Wed Jun 15 10:22:37 CEST 2016


  Branch: refs/heads/master
  Home:   https://github.com/sheepdog/sheepdog
  Commit: f4863a796ab2ea2e109e5b270e72cd03efdce7de
      https://github.com/sheepdog/sheepdog/commit/f4863a796ab2ea2e109e5b270e72cd03efdce7de
  Author: Frank Yu <flyxiaoyu at gmail.com>
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
    M lib/common.c

  Log Message:
  -----------
  lib: fix the build error on smartos

Met below error on smartos

common.c: In function ‘atomic_create_and_write’:
common.c:78:9: error: ‘FALLOC_FL_KEEP_SIZE’ undeclared (first use in this function)
     fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE,
   ^
common.c:78:9: note: each undeclared identifier is reported only once for each function it appears in
common.c:78:31: error: ‘FALLOC_FL_PUNCH_HOLE’ undeclared (first use in this function)
     fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE,
                         ^
make[1]: *** [common.o] Error 1

Signed-off-by: Frank Yu <flyxiaoyu at gmail.com>


  Commit: a62977592992d10cfd5a2a6fd6355fa8d8c32d87
      https://github.com/sheepdog/sheepdog/commit/a62977592992d10cfd5a2a6fd6355fa8d8c32d87
  Author: Hitoshi Mitake <mitake.hitoshi at gmail.com>
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
    M lib/common.c

  Log Message:
  -----------
  Merge pull request #252 from FrankYu/master

lib: fix the build error on centos


Compare: https://github.com/sheepdog/sheepdog/compare/44d864b2740b...a62977592992


More information about the sheepdog mailing list