summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>2014-03-11 22:30:23 +0200
committerNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>2014-03-11 22:30:23 +0200
commit714b5a213dc1f5badbf9d05f11183169dbd0a254 (patch)
tree99a8a1dd22b771cbd7ffc86f39bf81a7d1eca8e4
parent81eab80f40fd6c0d7ffb3734e27480ea5617807a (diff)
downloadusbhid-dump-714b5a213dc1f5badbf9d05f11183169dbd0a254.tar.gz
Add missing stdint.h includesstdint_fix
Include stdint.h where used. This fixes Gentoo/FreeBSD build issues. Reported by Mike Frysinger. Based on the fix by the same.
-rw-r--r--include/uhd/dev_list.h1
-rw-r--r--include/uhd/iface.h1
-rw-r--r--include/uhd/iface_list.h1
-rw-r--r--src/usbhid-dump.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/include/uhd/dev_list.h b/include/uhd/dev_list.h
index 434c906..ecc4739 100644
--- a/include/uhd/dev_list.h
+++ b/include/uhd/dev_list.h
@@ -28,6 +28,7 @@
#define __UHD_DEV_LIST_H__
#include <stddef.h>
+#include <stdint.h>
#include "uhd/dev.h"
#ifdef __cplusplus
diff --git a/include/uhd/iface.h b/include/uhd/iface.h
index d6bd67d..eabaa7d 100644
--- a/include/uhd/iface.h
+++ b/include/uhd/iface.h
@@ -27,6 +27,7 @@
#ifndef __UHD_IFACE_H__
#define __UHD_IFACE_H__
+#include <stdint.h>
#include "uhd/dev.h"
#ifdef __cplusplus
diff --git a/include/uhd/iface_list.h b/include/uhd/iface_list.h
index 17ad778..472e415 100644
--- a/include/uhd/iface_list.h
+++ b/include/uhd/iface_list.h
@@ -27,6 +27,7 @@
#ifndef __UHD_IFACE_LIST_H__
#define __UHD_IFACE_LIST_H__
+#include <stdint.h>
#include "uhd/dev_list.h"
#include "uhd/iface.h"
diff --git a/src/usbhid-dump.c b/src/usbhid-dump.c
index 56a2956..892ea6e 100644
--- a/src/usbhid-dump.c
+++ b/src/usbhid-dump.c
@@ -40,6 +40,7 @@
#include <unistd.h>
#include <getopt.h>
#include <stdio.h>
+#include <stdint.h>
/* Define LIBUSB_CALL for libusb <= 1.0.8 */
#ifndef LIBUSB_CALL