mirror of
https://github.com/golang/go
synced 2024-11-19 17:54:48 -07:00
cmd/dist: fix build on openbsd
R=rsc, bradfitz CC=golang-dev https://golang.org/cl/5608060
This commit is contained in:
parent
715588f1d3
commit
67b277c3b9
4
src/cmd/dist/windows.c
vendored
4
src/cmd/dist/windows.c
vendored
@ -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] == '\\';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user