summaryrefslogtreecommitdiff
path: root/gnulib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib.c')
-rw-r--r--gnulib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnulib.c b/gnulib.c
new file mode 100644
index 0000000..08544fc
--- /dev/null
+++ b/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);
+}