diff options
Diffstat (limited to 'ldso/ldso/nds32/dl-syscalls.h')
-rw-r--r-- | ldso/ldso/nds32/dl-syscalls.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ldso/ldso/nds32/dl-syscalls.h b/ldso/ldso/nds32/dl-syscalls.h new file mode 100644 index 000000000..54b8839d8 --- /dev/null +++ b/ldso/ldso/nds32/dl-syscalls.h @@ -0,0 +1,11 @@ +/* + * Copyright (C) 2016 Andes Technology, Inc. + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +/* We can't use the real errno in ldso, since it has not yet + * been dynamicly linked in yet. */ +#include "sys/syscall.h" +extern int _dl_errno; +#undef __set_errno +#define __set_errno(X) {(_dl_errno) = (X);} |