[lxc-devel] [lxd/master] lxd: add missing limits.h include

rgdoliveira on Github lxc-bot at linuxcontainers.org
Mon Apr 2 11:00:29 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 499 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180402/c195baa2/attachment.bin>
-------------- next part --------------
From 01b01fce2f5a5c04a497a4ad9ee73e1e7737945a Mon Sep 17 00:00:00 2001
From: Roberto Oliveira <robertoguimaraes8 at gmail.com>
Date: Mon, 2 Apr 2018 10:55:37 +0000
Subject: [PATCH] lxd: add missing limits.h include

On systems without glibc, as Alpine, you might lack definition of PATH_MAX.
This patch adds the limits.h header to solve this issue.

Signed-off-by: Roberto Oliveira <robertoguimaraes8 at gmail.com>
---
 lxd/main_forkfile.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lxd/main_forkfile.go b/lxd/main_forkfile.go
index 73f470cac..6c68c896d 100644
--- a/lxd/main_forkfile.go
+++ b/lxd/main_forkfile.go
@@ -17,6 +17,7 @@ import (
 #include <string.h>
 #include <sys/stat.h>
 #include <unistd.h>
+#include <limits.h>
 
 extern char* advance_arg(bool required);
 extern void error(char *msg);


More information about the lxc-devel mailing list