diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-01-12 18:52:41 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-01-15 12:56:21 -0500 |
commit | 357679d2fc567e8d6c030cf0f0fd54f6c31e23a3 (patch) | |
tree | 52388c85fe3515151b3a6d854f494a34dc9532ec | |
parent | 8b954ab9b808a51d8cf6a90c7d1d46a3366e3274 (diff) | |
download | glibc-357679d2fc567e8d6c030cf0f0fd54f6c31e23a3.tar.gz glibc-357679d2fc567e8d6c030cf0f0fd54f6c31e23a3.tar.xz glibc-357679d2fc567e8d6c030cf0f0fd54f6c31e23a3.zip |
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>
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/scsi/sg.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 0f5a017351..d2026656ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/sysdeps/unix/sysv/linux/scsi/sg.h b/sysdeps/unix/sysv/linux/scsi/sg.h index 9cad76ebfa..68f57f29fa 100644 --- a/sysdeps/unix/sysv/linux/scsi/sg.h +++ b/sysdeps/unix/sysv/linux/scsi/sg.h @@ -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 */ |