diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-11-23 15:08:20 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-11-23 15:08:20 -0500 |
commit | 3efb24019f73cca1c355063f7abe0b7641a67dfc (patch) | |
tree | e37b7d7fd710e22bce7a560d20c685e4579f6f09 /src | |
parent | 6f20f7bd2209a90872a64a40de96912fa03f42be (diff) | |
download | bfs-3efb24019f73cca1c355063f7abe0b7641a67dfc.tar.xz |
bfstd: makedev() takes 3 arguments on QNX
Diffstat (limited to 'src')
-rw-r--r-- | src/bfstd.c | 4 |
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; |