diff --git a/sysdeps/unix/bsd/sun/sparc/sethostid.S b/sysdeps/unix/bsd/sun/sparc/sethostid.S index e7981e9cde..04e6e981be 100644 --- a/sysdeps/unix/bsd/sun/sparc/sethostid.S +++ b/sysdeps/unix/bsd/sun/sparc/sethostid.S @@ -32,9 +32,9 @@ ENTRY (sethostid) sethi %hi(___errno), %g1 st %o0, [%g1 + %lo(___errno)] retl - sub 0, 1, %o0 + sub %g0, 1, %o0 -#ifdef __GNU_STAB__ +#ifdef HAVE_GNU_LD .stabs "warning: sethostid is not implemented and will always fail",30,0,0,0 .stabs "_sethostid",1,0,0,0