summaryrefslogtreecommitdiff
path: root/utils/bluez/patches/210-util-define-MAX_INPUT.patch
blob: e2af0bf6532579816af86b6bcbd36a1d3693e769 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -23,6 +23,9 @@
 #include <dirent.h>
 #include <limits.h>
 #include <string.h>
+#ifndef MAX_INPUT
+#define MAX_INPUT _POSIX_MAX_INPUT
+#endif
 
 #ifdef HAVE_SYS_RANDOM_H
 #include <sys/random.h>