[hackers] [ubase][PATCH] Fix compiles by including sysmacros.h where needed

From: Daniel Wilkins <tekk.tonic_AT_aol.com>
Date: Sat, 15 Apr 2023 01:44:29 -0400

---
 libutil/tty.c | 1 +
 mknod.c       | 1 +
 stat.c        | 3 ++-
 3 files changed, 4 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/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.35.7
Received on Sat Apr 15 2023 - 07:44:29 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 15 2023 - 07:48:41 CEST