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>
master
David Sterba 2016-11-14 16:43:15 +01:00
parent becd520b5c
commit 08a072c709
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ extern "C" {
#include <asm/types.h>
#include <linux/ioctl.h>
#include <stddef.h>
#ifndef __user
#define __user