]> www.infradead.org Git - users/hch/nvme-cli.git/commit
nvme-cli: Fix build on aarch64-linux-android-4.9
authorRakesh Pandit <rakesh@tuxera.com>
Mon, 24 Apr 2017 07:44:17 +0000 (10:44 +0300)
committerKeith Busch <keith.busch@intel.com>
Mon, 24 Apr 2017 15:07:12 +0000 (11:07 -0400)
commit59585dcaaf1b22044db65129f1ae734a86cd4367
tree343b67ead972cc8989c7711241207b851928367a
parent44f8c69444e937a38488552f21dc7e5f89746cbf
nvme-cli: Fix build on aarch64-linux-android-4.9

Need to include sys/stat.h to fix:
fabrics.c:414:45: error: 'S_IRUSR' undeclared (first use in this function)
fabrics.c:414:53: error: 'S_IWUSR' undeclared (first use in this function)

Also fix warning:
common.h:4:0:
warning: "offsetof" redefined #define offsetof(x, y)
__builtin_offsetof(x, y) ^

Fix this trivial warning by including stddef.h and removing this
definition.

Signed-off-by: Rakesh Pandit <rakesh@tuxera.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
common.h
fabrics.c