summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/util.c b/util.c
index 9730a5e..64785be 100644
--- a/util.c
+++ b/util.c
@@ -30,6 +30,10 @@
#include <sys/types.h>
#include <unistd.h>
+#if __GLIBC__ || __has_include(<sys/sysmacros.h>)
+# include <sys/sysmacros.h>
+#endif
+
int xreaddir(DIR *dir, struct dirent **de) {
errno = 0;
*de = readdir(dir);
@@ -440,3 +444,15 @@ int ynprompt() {
dstrfree(line);
return ret;
}
+
+dev_t bfs_makedev(int ma, int mi) {
+ return makedev(ma, mi);
+}
+
+int bfs_major(dev_t dev) {
+ return major(dev);
+}
+
+int bfs_minor(dev_t dev) {
+ return minor(dev);
+}