From f67416822a54109bd9cfa0fd210d7d8f53412ced Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 14 Jun 2017 13:09:23 -0500 Subject: move all compatibility library stuff into libgcompat/ --- libgcompat/gnulib.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 libgcompat/gnulib.c (limited to 'libgcompat/gnulib.c') 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 +#include + +unsigned long __fdelt_chk(unsigned long size) +{ + assert(size < FD_SETSIZE); + return size / (sizeof(unsigned long)<<3); +} -- cgit v1.2.3-60-g2f50