Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/nds32/_lseek.S')
-rw-r--r--libgloss/nds32/_lseek.S12
1 files changed, 10 insertions, 2 deletions
diff --git a/libgloss/nds32/_lseek.S b/libgloss/nds32/_lseek.S
index 86e2d31d5..c17e22f8f 100644
--- a/libgloss/nds32/_lseek.S
+++ b/libgloss/nds32/_lseek.S
@@ -27,8 +27,16 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "../syscall.h"
-#include "syscall_extra.h"
+#ifdef __NDS32_VH__
+
+#include "vh.h"
+.extern _impure_ptr
+TYPE1 _lseek, VH_LSEEK
+#else /* not __NDS32_VH__ */
+#include "../syscall.h"
+#include "syscall_extra.h"
SYS_WRAPPER _lseek, SYS_lseek
+
+#endif /* not __NDS32_VH__ */