]> sigrok.org Git - libserialport.git/blobdiff - libserialport_internal.h
sp_wait: Avoid overflow of timeout parameter to poll().
[libserialport.git] / libserialport_internal.h
index 5db81e5ba4b0782c22e448e89288104099618be5..a0d872bb8ed8bd8f9f2b854470965a694a107089 100644 (file)
@@ -21,7 +21,6 @@
 #ifndef LIBSERIALPORT_LIBSERIALPORT_INTERNAL_H
 #define LIBSERIALPORT_LIBSERIALPORT_INTERNAL_H
 
-#include <config.h>
 
 #ifdef __linux__
 #define _BSD_SOURCE /* For timeradd, timersub, timercmp. */
@@ -36,6 +35,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <limits.h>
 #ifdef _WIN32
 #include <windows.h>
 #include <tchar.h>