mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 05:49:11 +01:00
20 lines
553 B
C++
20 lines
553 B
C++
|
#include "bitcoin-config.h"
|
||
|
#include <cstddef>
|
||
|
#include <sys/select.h>
|
||
|
|
||
|
// Prior to GLIBC_2.14, memcpy was aliased to memmove.
|
||
|
extern "C" void* memmove(void* a, const void* b, size_t c);
|
||
|
extern "C" void* memcpy(void* a, const void* b, size_t c)
|
||
|
{
|
||
|
return memmove(a, b, c);
|
||
|
}
|
||
|
|
||
|
extern "C" void __chk_fail (void) __attribute__((__noreturn__));
|
||
|
extern "C" FDELT_TYPE __fdelt_warn(FDELT_TYPE a)
|
||
|
{
|
||
|
if (a >= FD_SETSIZE)
|
||
|
__chk_fail ();
|
||
|
return a / __NFDBITS;
|
||
|
}
|
||
|
extern "C" FDELT_TYPE __fdelt_chk(FDELT_TYPE) __attribute__((weak, alias("__fdelt_warn")));
|