diff options
author | Ulrich Ölmann <u.oelmann@pengutronix.de> | 2019-02-08 08:15:24 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-02-11 09:12:36 +0100 |
commit | 240abfe2224f3701c2f81a3baeed1206f5539f24 (patch) | |
tree | 2a411b8737a08dc343b3f4a46b1659b39d2238c1 | |
parent | 04657b6af779bcf7ac06f36ffa0707f216a88b45 (diff) | |
download | barebox-240abfe2224f3701c2f81a3baeed1206f5539f24.tar.gz barebox-240abfe2224f3701c2f81a3baeed1206f5539f24.tar.xz |
common: state: harmonize code with dt-utils
Linux userspace needs sys/param.h to have the definition of roundup().
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | common/state/backend_bucket_circular.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/state/backend_bucket_circular.c b/common/state/backend_bucket_circular.c index 059a531aa4..da7c8421ae 100644 --- a/common/state/backend_bucket_circular.c +++ b/common/state/backend_bucket_circular.c @@ -23,6 +23,10 @@ #include <mtd/mtd-peb.h> #include <string.h> +#ifndef __BAREBOX__ +#include <sys/param.h> +#endif + #include "state.h" /* |