diff options
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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); +} |