Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
dc931934
Commit
dc931934
authored
Jun 07, 2014
by
Damien George
Browse files
Merge pull request #674 from marcusva/fbsd-patches
Build patches for FreeBSD (as discussed in the former pull request #666)
parents
c61be8e1
585a3394
Changes
2
Hide whitespace changes
Inline
Side-by-side
unix/modos.c
View file @
dc931934
...
...
@@ -52,7 +52,7 @@ STATIC mp_obj_t mod_os_stat(mp_obj_t path_in) {
mp_obj_tuple_t
*
t
=
mp_obj_new_tuple
(
10
,
NULL
);
t
->
items
[
0
]
=
MP_OBJ_NEW_SMALL_INT
((
machine_int_t
)
sb
.
st_mode
);
t
->
items
[
1
]
=
MP_OBJ_NEW_SMALL_INT
(
sb
.
st_ino
);
t
->
items
[
1
]
=
MP_OBJ_NEW_SMALL_INT
(
(
machine_int_t
)
sb
.
st_ino
);
t
->
items
[
2
]
=
MP_OBJ_NEW_SMALL_INT
((
machine_int_t
)
sb
.
st_dev
);
t
->
items
[
3
]
=
MP_OBJ_NEW_SMALL_INT
((
machine_int_t
)
sb
.
st_nlink
);
t
->
items
[
4
]
=
MP_OBJ_NEW_SMALL_INT
((
machine_int_t
)
sb
.
st_uid
);
...
...
unix/modtime.c
View file @
dc931934
...
...
@@ -55,10 +55,8 @@ void msec_sleep_tv(struct timeval *tv) {
#define MP_CLOCKS_PER_SEC CLOCKS_PER_SEC
#endif
#if defined(MP_CLOCKS_PER_SEC) && (MP_CLOCKS_PER_SEC == 1000000) // POSIX
#define CLOCK_DIV 1000.0
#elif defined(MP_CLOCKS_PER_SEC) && (MP_CLOCKS_PER_SEC == 1000) // WIN32
#define CLOCK_DIV 1.0
#if defined(MP_CLOCKS_PER_SEC)
#define CLOCK_DIV (MP_CLOCKS_PER_SEC / 1000.0)
#else
#error Unsupported clock() implementation
#endif
...
...
Write
Preview
Supports
Markdown
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