Patchwork [2/9] petitboot: Include limits.h

login
register
mail settings
Submitter Geoff Levand
Date Nov. 7, 2008, 12:20 a.m.
Message ID <491389E3.5020301@am.sony.com>
Download mbox | patch
Permalink /patch/7629/
State Accepted
Delegated to: Jeremy Kerr
Headers show

Comments

Geoff Levand - Nov. 7, 2008, 12:20 a.m.
Include limits.h.

Fixes these build errors:

  petitboot-udev-helper.c:415: error: 'PATH_MAX' undeclared
  petitboot-udev-helper.c:496: error: 'INT_MAX' undeclared

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
 devices/petitboot-udev-helper.c |    1 +
 1 file changed, 1 insertion(+)
Jeremy Kerr - Dec. 7, 2008, 3:14 a.m.
Hi Geoff,

> Include limits.h.

Thanks, applied.


Jeremy

Patch

--- a/devices/petitboot-udev-helper.c
+++ b/devices/petitboot-udev-helper.c
@@ -6,6 +6,7 @@ 
 #include <stdarg.h>
 #include <stdint.h>
 #include <unistd.h>
+#include <limits.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/socket.h>