X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libgo%2Fgo%2Fsyscall%2Ferrno.c;h=5cdc7730445e9ab933dc4b32c4e45cbdfe2f0ede;hb=4d8cd3a26294ce35abb17668eac2b6c38dd23bd0;hp=d01f4c973d7a4660e5fe1c1953c12e68ffc64dc2;hpb=c944d49b3bd3667c65c299afd3b1d756084203f4;p=platform%2Fupstream%2Fgcc48.git diff --git a/libgo/go/syscall/errno.c b/libgo/go/syscall/errno.c index d01f4c9..5cdc773 100644 --- a/libgo/go/syscall/errno.c +++ b/libgo/go/syscall/errno.c @@ -3,15 +3,16 @@ Copyright 2010 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ - #include #include +#include "runtime.h" + /* errno is typically a macro. These functions set and get errno specific to the libc being used. */ -uintptr_t GetErrno() asm ("syscall.GetErrno"); -void SetErrno(uintptr_t) asm ("syscall.SetErrno"); +uintptr_t GetErrno() __asm__ (GOSYM_PREFIX "syscall.GetErrno"); +void SetErrno(uintptr_t) __asm__ (GOSYM_PREFIX "syscall.SetErrno"); uintptr_t GetErrno()