From 3efb24019f73cca1c355063f7abe0b7641a67dfc Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 23 Nov 2024 15:08:20 -0500 Subject: bfstd: makedev() takes 3 arguments on QNX --- src/bfstd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3