summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-11-14 16:43:15 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-23 10:49:33 +0100
commit08a072c70998f89aef8f9704a16b52998a0a4d69 (patch)
tree1b4a4599c061a9cf4c3e4070e531dffc58b81961
parentbecd520b5cc5a9cbb8ca70250c8ebf09bae28eb0 (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>
-rw-r--r--ioctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ioctl.h b/ioctl.h
index cdfb8882..709e996f 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -25,6 +25,7 @@ extern "C" {
#include <asm/types.h>
#include <linux/ioctl.h>
+#include <stddef.h>
#ifndef __user
#define __user