Commit 01283774 by Stéphane Graber

Merge pull request #895 from tych0/fix-android-build

build: fix build on android (and ppc)
parents 75d0c7b3 f03280a7
...@@ -732,7 +732,9 @@ static int save_tty_major_minor(char *directory, struct lxc_container *c, char * ...@@ -732,7 +732,9 @@ static int save_tty_major_minor(char *directory, struct lxc_container *c, char *
return -1; return -1;
} }
ret = snprintf(tty_id, len, "tty[%lx:%lx]", sb.st_rdev, sb.st_dev); ret = snprintf(tty_id, len, "tty[%llx:%llx]",
(long long unsigned) sb.st_rdev,
(long long unsigned) sb.st_dev);
if (ret < 0 || ret >= sizeof(path)) { if (ret < 0 || ret >= sizeof(path)) {
ERROR("snprintf'd too many characters: %d", ret); ERROR("snprintf'd too many characters: %d", ret);
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment