[hackers][ubase][PATCH] Fix build errors on some ARM64 Linux systems

From: Platon Ryzhikov <ihummer63_AT_yandex.ru>
Date: Mon, 27 Aug 2018 21:39:28 +0300

These changes are required on Arch Linux ARM to build ubase. This does not affect x86 build.

---
 libutil/tty.c | 1 +
 mknod.c       | 1 +
 mountpoint.c  | 1 +
 stat.c        | 3 ++-
 4 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/libutil/tty.c b/libutil/tty.c
index bceb01e..8a2cd73 100644
--- a/libutil/tty.c
+++ b/libutil/tty.c
_AT_@ -1,6 +1,7 @@
 /* See LICENSE file for copyright and license details. */
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 
 #include <fcntl.h>
 #include <dirent.h>
diff --git a/mknod.c b/mknod.c
index 8de35c7..27f91e0 100644
--- a/mknod.c
+++ b/mknod.c
_AT_@ -1,6 +1,7 @@
 /* See LICENSE file for copyright and license details. */
 #include <sys/stat.h>
 #include <sys/types.h>
+#include <sys/sysmacros.h>
 
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/mountpoint.c b/mountpoint.c
index 8f205a2..fd3a133 100644
--- a/mountpoint.c
+++ b/mountpoint.c
_AT_@ -1,6 +1,7 @@
 /* See LICENSE file for copyright and license details. */
 #include <sys/stat.h>
 #include <sys/types.h>
+#include <sys/sysmacros.h>
 
 #include <mntent.h>
 #include <stdio.h>
diff --git a/stat.c b/stat.c
index 220a659..3f91566 100644
--- a/stat.c
+++ b/stat.c
_AT_@ -1,6 +1,7 @@
 /* See LICENSE file for copyright and license details. */
 #include <sys/stat.h>
 #include <sys/types.h>
+#include <sys/sysmacros.h>
 
 #include <inttypes.h>
 #include <stdio.h>
_AT_@ -86,4 +87,4 @@ main(int argc, char *argv[])
 	}
 
 	return ret;
-}
\ No newline at end of file
+}
-- 
2.18.0
Received on Mon Aug 27 2018 - 20:39:28 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 27 2018 - 20:48:23 CEST