Commit 67b277c3 authored by Mikio Hara's avatar Mikio Hara

cmd/dist: fix build on openbsd

R=rsc, bradfitz
CC=golang-dev
https://golang.org/cl/5608060
parent 715588f1
......@@ -396,10 +396,10 @@ mtime(char *p)
bool
isabs(char *p)
{
// c:/ or c:\
// "c:/" or "c:\"
if(('A' <= p[0] && p[0] <= 'Z') || ('a' <= p[0] && p[0] <= 'z'))
return p[1] == ':' && (p[2] == '/' || p[2] == '\\');
// / or \
// "/" or "\"
return p[0] == '/' || p[0] == '\\';
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment