Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
ee14fbdf
Commit
ee14fbdf
authored
Jul 25, 2011
by
Wei Guangjing
Committed by
Russ Cox
Jul 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: fixes for mingw-w64
R=rsc CC=golang-dev
https://golang.org/cl/4742042
parent
0871af25
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
include/libc.h
include/libc.h
+6
-2
src/lib9/fmt/dofmt.c
src/lib9/fmt/dofmt.c
+1
-1
src/libmach/5.c
src/libmach/5.c
+1
-1
No files found.
include/libc.h
View file @
ee14fbdf
...
@@ -292,16 +292,20 @@ extern char* getgoroot(void);
...
@@ -292,16 +292,20 @@ extern char* getgoroot(void);
extern
char
*
getgoversion
(
void
);
extern
char
*
getgoversion
(
void
);
#ifdef _WIN32
#ifdef _WIN32
#ifndef _WIN64
struct
timespec
{
struct
timespec
{
int
tv_sec
;
int
tv_sec
;
long
tv_nsec
;
long
tv_nsec
;
};
};
#define execv(prog, argv) execv(prog, (const char* const*)(argv))
#define execvp(prog, argv) execvp(prog, (const char**)(argv))
#endif
extern
int
nanosleep
(
const
struct
timespec
*
rqtp
,
struct
timespec
*
rmtp
);
extern
int
nanosleep
(
const
struct
timespec
*
rqtp
,
struct
timespec
*
rmtp
);
extern
int
fork
(
void
);
extern
int
fork
(
void
);
extern
int
pread
(
int
fd
,
void
*
buf
,
int
n
,
int
off
);
extern
int
pread
(
int
fd
,
void
*
buf
,
int
n
,
int
off
);
extern
int
pwrite
(
int
fd
,
void
*
buf
,
int
n
,
int
off
);
extern
int
pwrite
(
int
fd
,
void
*
buf
,
int
n
,
int
off
);
#define execv(prog, argv) execv(prog, (const char* const*)(argv))
#define execvp(prog, argv) execvp(prog, (const char**)(argv))
#define lseek(fd, n, base) _lseeki64(fd, n, base)
#define lseek(fd, n, base) _lseeki64(fd, n, base)
#define mkdir(path, perm) mkdir(path)
#define mkdir(path, perm) mkdir(path)
#define pipe(fd) _pipe(fd, 512, O_BINARY)
#define pipe(fd) _pipe(fd, 512, O_BINARY)
...
...
src/lib9/fmt/dofmt.c
View file @
ee14fbdf
...
@@ -369,7 +369,7 @@ __ifmt(Fmt *f)
...
@@ -369,7 +369,7 @@ __ifmt(Fmt *f)
}
}
#endif
#endif
if
(
f
->
r
==
'p'
){
if
(
f
->
r
==
'p'
){
u
=
(
u
long
)
va_arg
(
f
->
args
,
void
*
);
u
=
(
u
intptr
)
va_arg
(
f
->
args
,
void
*
);
f
->
r
=
'x'
;
f
->
r
=
'x'
;
fl
|=
FmtUnsigned
;
fl
|=
FmtUnsigned
;
}
else
if
(
fl
&
FmtVLong
){
}
else
if
(
fl
&
FmtVLong
){
...
...
src/libmach/5.c
View file @
ee14fbdf
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#include "ureg_arm.h"
#include "ureg_arm.h"
#include <mach.h>
#include <mach.h>
#define REGOFF(x) (u
long
) (&((struct Ureg *) 0)->x)
#define REGOFF(x) (u
intptr
) (&((struct Ureg *) 0)->x)
#define SP REGOFF(r13)
#define SP REGOFF(r13)
#define PC REGOFF(pc)
#define PC REGOFF(pc)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment