summaryrefslogtreecommitdiff
path: root/libgcompat/gnulib.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgcompat/gnulib.c')
-rw-r--r--libgcompat/gnulib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgcompat/gnulib.c b/libgcompat/gnulib.c
new file mode 100644
index 0000000..08544fc
--- /dev/null
+++ b/libgcompat/gnulib.c
@@ -0,0 +1,8 @@
+#include <assert.h>
+#include <sys/select.h>
+
+unsigned long __fdelt_chk(unsigned long size)
+{
+ assert(size < FD_SETSIZE);
+ return size / (sizeof(unsigned long)<<3);
+}