[LEDE-DEV,procd] add limits.h because it is needed for INT_MAX

Message ID 846e5a81-3141-049f-8db5-444c1548b2f9@johanneswegener.de
State Rejected
Headers show
Series
  • [LEDE-DEV,procd] add limits.h because it is needed for INT_MAX
Related show

Commit Message

Johannes Wegener Oct. 23, 2017, 3:55 p.m.
---
 trace/trace.c | 1 +
 1 file changed, 1 insertion(+)

Comments

John Crispin Nov. 6, 2017, 8:16 a.m. | #1
On 23/10/17 17:55, Johannes Wegener wrote:
> ---
>   trace/trace.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/trace/trace.c b/trace/trace.c
> index 76b6b7f..c471e15 100644
> --- a/trace/trace.c
> +++ b/trace/trace.c
> @@ -25,6 +25,7 @@
>   #include <errno.h>
>   #include <string.h>
>   #include <syslog.h>
> +#include <limits.h>
>
>   #ifndef PTRACE_EVENT_STOP
>   /* PTRACE_EVENT_STOP is defined in linux/ptrace.h, but this header

How are you building this causing the error ?

     John

Patch

diff --git a/trace/trace.c b/trace/trace.c
index 76b6b7f..c471e15 100644
--- a/trace/trace.c
+++ b/trace/trace.c
@@ -25,6 +25,7 @@ 
 #include <errno.h>
 #include <string.h>
 #include <syslog.h>
+#include <limits.h>

 #ifndef PTRACE_EVENT_STOP
 /* PTRACE_EVENT_STOP is defined in linux/ptrace.h, but this header