summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-11-23 15:08:20 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-11-23 15:08:20 -0500
commit3efb24019f73cca1c355063f7abe0b7641a67dfc (patch)
treee37b7d7fd710e22bce7a560d20c685e4579f6f09 /src
parent6f20f7bd2209a90872a64a40de96912fa03f42be (diff)
downloadbfs-3efb24019f73cca1c355063f7abe0b7641a67dfc.tar.xz
bfstd: makedev() takes 3 arguments on QNX
Diffstat (limited to 'src')
-rw-r--r--src/bfstd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bfstd.c b/src/bfstd.c
index b29fb7b..b58d69e 100644
--- a/src/bfstd.c
+++ b/src/bfstd.c
@@ -482,7 +482,9 @@ int rlim_cmp(rlim_t a, rlim_t b) {
}
dev_t xmakedev(int ma, int mi) {
-#ifdef makedev
+#if __QNX__
+ return makedev(0, ma, mi);
+#elif defined(makedev)
return makedev(ma, mi);
#else
return (ma << 8) | mi;