include <limits.h> instead of <sys/limits.h>; patch by Thomas Klausner
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
diff --git a/got/got.c b/got/got.c
index 24418f1..9a69229 100644
--- a/got/got.c
+++ b/got/got.c
@@ -16,7 +16,6 @@
*/
#include <sys/queue.h>
-#include <sys/limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h>
@@ -24,6 +23,7 @@
#include <err.h>
#include <errno.h>
+#include <limits.h>
#include <locale.h>
#include <ctype.h>
#include <signal.h>
diff --git a/lib/worktree.c b/lib/worktree.c
index 96f3f30..78f6bf5 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -15,11 +15,11 @@
*/
#include <sys/stat.h>
-#include <sys/limits.h>
#include <sys/queue.h>
#include <sys/tree.h>
#include <dirent.h>
+#include <limits.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>
diff --git a/libexec/got-read-blob/got-read-blob.c b/libexec/got-read-blob/got-read-blob.c
index 9c71c91..02a1037 100644
--- a/libexec/got-read-blob/got-read-blob.c
+++ b/libexec/got-read-blob/got-read-blob.c
@@ -18,11 +18,11 @@
#include <sys/queue.h>
#include <sys/uio.h>
#include <sys/time.h>
-#include <sys/limits.h>
#include <sys/syslimits.h>
#include <stdint.h>
#include <imsg.h>
+#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/libexec/got-read-commit/got-read-commit.c b/libexec/got-read-commit/got-read-commit.c
index f2dc853..19ddcf4 100644
--- a/libexec/got-read-commit/got-read-commit.c
+++ b/libexec/got-read-commit/got-read-commit.c
@@ -18,11 +18,11 @@
#include <sys/queue.h>
#include <sys/uio.h>
#include <sys/time.h>
-#include <sys/limits.h>
#include <sys/syslimits.h>
#include <stdint.h>
#include <imsg.h>
+#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/libexec/got-read-object/got-read-object.c b/libexec/got-read-object/got-read-object.c
index 0101bb0..cf31541 100644
--- a/libexec/got-read-object/got-read-object.c
+++ b/libexec/got-read-object/got-read-object.c
@@ -18,11 +18,11 @@
#include <sys/queue.h>
#include <sys/uio.h>
#include <sys/time.h>
-#include <sys/limits.h>
#include <sys/syslimits.h>
#include <stdint.h>
#include <imsg.h>
+#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/libexec/got-read-pack/got-read-pack.c b/libexec/got-read-pack/got-read-pack.c
index 0f2d28d..faa1ca0 100644
--- a/libexec/got-read-pack/got-read-pack.c
+++ b/libexec/got-read-pack/got-read-pack.c
@@ -18,7 +18,6 @@
#include <sys/queue.h>
#include <sys/uio.h>
#include <sys/time.h>
-#include <sys/limits.h>
#include <sys/syslimits.h>
#include <sys/mman.h>
diff --git a/libexec/got-read-tag/got-read-tag.c b/libexec/got-read-tag/got-read-tag.c
index cff236e..5839f14 100644
--- a/libexec/got-read-tag/got-read-tag.c
+++ b/libexec/got-read-tag/got-read-tag.c
@@ -18,11 +18,11 @@
#include <sys/queue.h>
#include <sys/uio.h>
#include <sys/time.h>
-#include <sys/limits.h>
#include <sys/syslimits.h>
#include <stdint.h>
#include <imsg.h>
+#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/libexec/got-read-tree/got-read-tree.c b/libexec/got-read-tree/got-read-tree.c
index 8d4fb58..78ffcce 100644
--- a/libexec/got-read-tree/got-read-tree.c
+++ b/libexec/got-read-tree/got-read-tree.c
@@ -18,11 +18,11 @@
#include <sys/queue.h>
#include <sys/uio.h>
#include <sys/time.h>
-#include <sys/limits.h>
#include <sys/syslimits.h>
#include <stdint.h>
#include <imsg.h>
+#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>