summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorben Weber <thorben.weber@web.de>2013-04-07 03:18:36 +0200
committerSebastian Reichel <sre@ring0.de>2013-04-07 03:18:36 +0200
commitd04a505cd1bf871763b6ad1c26889e920509b956 (patch)
treedac8b6dc1ec36b28136551150df0fed92bd26f61
parent27eade134df221aafe59417d3b7c08168080a1ee (diff)
downloadweatherstation-master.tar.bz2
usb.h needs sys/types.h and linux/limits.h on some systemsHEADmaster
-rw-r--r--weatherstation.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/weatherstation.c b/weatherstation.c
index c8b6fcf..d3bbb5f 100644
--- a/weatherstation.c
+++ b/weatherstation.c
@@ -14,6 +14,10 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifdef __linux__
+#include <linux/limits.h>
+#endif
+#include <sys/types.h>
#include <usb.h>
#include <string.h>
#include <stdio.h>