src/dmiperf: Include sys/types.h for u_int32_t
authorRostislav Skudnov <rostislav@tuxera.com>
Mon, 22 Jan 2018 15:57:16 +0000 (15:57 +0000)
committerEryu Guan <eguan@redhat.com>
Sun, 28 Jan 2018 09:12:28 +0000 (17:12 +0800)
u_int32_t type is defined in sys/types.h, which is often included by
glibc implicitly when some other headers are used, but other C
libraries such as musl may not necessarily do so, therefore an
explicit include is needed.

Signed-off-by: Rostislav Skudnov <rostislav@tuxera.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
src/dmiperf.c

index 245e529c379a79b15c21e6b2fdad8ac791bf09a5..359324ac4e04e73e3ec5a2950d42961accfb17f3 100644 (file)
@@ -16,6 +16,7 @@
  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include <sys/types.h>
 #include <sys/param.h>
 #include <sys/stat.h>
 #include <sys/time.h>