diff options
author | William Pitcock <nenolod@dereferenced.org> | 2017-06-14 13:09:23 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-06-14 13:09:23 -0500 |
commit | f67416822a54109bd9cfa0fd210d7d8f53412ced (patch) | |
tree | 7d3d14933f39ca160d706d1bec25ce541a188962 /libgcompat/gnulib.c | |
parent | 2b58008b911d9dc8354b9001e22b594fa6456dd1 (diff) | |
download | gcompat-f67416822a54109bd9cfa0fd210d7d8f53412ced.tar.gz gcompat-f67416822a54109bd9cfa0fd210d7d8f53412ced.tar.bz2 gcompat-f67416822a54109bd9cfa0fd210d7d8f53412ced.tar.xz gcompat-f67416822a54109bd9cfa0fd210d7d8f53412ced.zip |
move all compatibility library stuff into libgcompat/
Diffstat (limited to 'libgcompat/gnulib.c')
-rw-r--r-- | libgcompat/gnulib.c | 8 |
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); +} |