scsi/sg.h: include stddef.h for size_t

This header uses size_t but doesn't include stddef.h for it.  So when
packages happen to include this before any header that defines size_t,
they get a build failure.

Reviewed-by: Carlos O'Donell <codonell@redhat.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2013-01-12 18:52:41 -05:00
parent 8b954ab9b8
commit 357679d2fc
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2013-01-15 Mike Frysinger <vapier@gentoo.org>
* sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
2013-01-14 David S. Miller <davem@davemloft.net>
* sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.

View File

@ -26,6 +26,8 @@
#define _SCSI_SG_H 1
#include <features.h>
#define __need_size_t
#include <stddef.h>
/* New interface introduced in the 3.x SG drivers follows */