summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/scsi
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-01-12 18:52:41 -0500
committerMike Frysinger <vapier@gentoo.org>2013-01-15 12:56:21 -0500
commit357679d2fc567e8d6c030cf0f0fd54f6c31e23a3 (patch)
tree52388c85fe3515151b3a6d854f494a34dc9532ec /sysdeps/unix/sysv/linux/scsi
parent8b954ab9b808a51d8cf6a90c7d1d46a3366e3274 (diff)
downloadglibc-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>
Diffstat (limited to 'sysdeps/unix/sysv/linux/scsi')
-rw-r--r--sysdeps/unix/sysv/linux/scsi/sg.h2
1 files changed, 2 insertions, 0 deletions
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 */