diff options
author | David Sterba <dsterba@suse.com> | 2016-11-14 16:43:15 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-23 10:49:33 +0100 |
commit | 08a072c70998f89aef8f9704a16b52998a0a4d69 (patch) | |
tree | 1b4a4599c061a9cf4c3e4070e531dffc58b81961 /ioctl.h | |
parent | becd520b5cc5a9cbb8ca70250c8ebf09bae28eb0 (diff) |
btrfs-progs: ioctl: fix compilation if ioctl.h is included standalone
Definition of NULL is missing if ioctl.h is included standalone or when
no other include pulls the definition.
Reported-by: Sergei Trofimovich <slyich@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'ioctl.h')
-rw-r--r-- | ioctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -25,6 +25,7 @@ extern "C" { #include <asm/types.h> #include <linux/ioctl.h> +#include <stddef.h> #ifndef __user #define __user |