summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-17 11:42:54 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-17 11:42:54 -0800
commit4450727e9880c651ce37e70a838f945c0350f5d0 (patch)
tree6db37a6fd6b3c3cb2ab6d4413e88b81375bdbb7b
parent541765ebcf8f5b63d72809c382cffdefd05a551b (diff)
unifdef __QNX__
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/FSlibos.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/FSlibos.h b/src/FSlibos.h
index de78c80..3484010 100644
--- a/src/FSlibos.h
+++ b/src/FSlibos.h
@@ -95,15 +95,11 @@ in this Software without prior written authorization from The Open Group.
# ifdef NOFILE
# define OPEN_MAX NOFILE
# else
-# if !defined(__QNX__)
-# ifdef __GNU__
-# define OPEN_MAX (sysconf(_SC_OPEN_MAX))
-# else /* !__GNU__ */
-# define OPEN_MAX NOFILES_MAX
-# endif /* __GNU__ */
-# else /* !__QNX__ */
-# define OPEN_MAX 256
-# endif /* __QNX__ */
+# ifdef __GNU__
+# define OPEN_MAX (sysconf(_SC_OPEN_MAX))
+# else /* !__GNU__ */
+# define OPEN_MAX NOFILES_MAX
+# endif /* __GNU__ */
# endif
# endif
# endif