Commit 12ce7a6cb20e62e36b3430f7bbada96069749f8b

Stefan Sperling 2019-08-12T20:56:30

include <limits.h> instead of <sys/limits.h>; patch by Thomas Klausner

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>