From e98f2179b17e4d5b4e416bf4856cf68813d17356 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Mon, 22 Dec 2014 23:44:41 -0500 Subject: [PATCH] runtime: fix build for arm and ppc64/ppc64le Change-Id: I17ddcb541dfac8b1e48e01ee005563031b6ade2a Reviewed-on: https://go-review.googlesource.com/2062 Reviewed-by: Ian Lance Taylor --- src/runtime/noasm.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runtime/noasm.go b/src/runtime/noasm.go index b7e3f82f8e..998309e828 100644 --- a/src/runtime/noasm.go +++ b/src/runtime/noasm.go @@ -9,6 +9,8 @@ package runtime +import _ "unsafe" + func cmpstring(s1, s2 string) int { l := len(s1) if len(s2) < l { -- 2.48.1