summaryrefslogtreecommitdiff
path: root/ldso/ldso/nds32/dl-syscalls.h
blob: 54b8839d8e9ab256443530331bd77c355521691e (plain)
1
2
3
4
5
6
7
8
9
10
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);}