File tree Expand file tree Collapse file tree 6 files changed +38
-144
lines changed Expand file tree Collapse file tree 6 files changed +38
-144
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 32e730f122f06202eb48aefcc2cef6ee3e279a2f
8
+ refs/heads/try2: f82246f56db34b52fac8466659ad454f1610280c
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change 10
10
11
11
/* Foreign builtins. */
12
12
13
- #include "rust_globals.h"
14
13
#include "vg/valgrind.h"
15
14
15
+ #include <stdint.h>
16
16
#include <time.h>
17
-
18
- #ifdef __APPLE__
19
- #include <TargetConditionals.h>
20
- #include <mach/mach_time.h>
21
-
22
- #if (TARGET_OS_IPHONE )
23
- extern char * * environ ;
24
- #else
25
- #include <crt_externs.h>
26
- #endif
27
- #endif
17
+ #include <string.h>
18
+ #include <assert.h>
19
+ #include <stdlib.h>
28
20
29
21
#if !defined(__WIN32__ )
30
22
#include <sys/time.h>
23
+ #include <sys/types.h>
24
+ #include <dirent.h>
25
+ #include <signal.h>
26
+ #include <unistd.h>
27
+ #include <pthread.h>
28
+ #else
29
+ #include <windows.h>
30
+ #include <wincrypt.h>
31
+ #include <stdio.h>
32
+ #include <tchar.h>
31
33
#endif
32
34
33
- #ifdef __FreeBSD__
34
- extern char * * environ ;
35
+ #ifdef __APPLE__
36
+ #include <TargetConditionals.h>
37
+ #include <mach/mach_time.h>
38
+
39
+ #if !(TARGET_OS_IPHONE )
40
+ #include <crt_externs.h>
41
+ #endif
35
42
#endif
36
43
37
44
#ifdef __ANDROID__
@@ -57,6 +64,16 @@ timegm(struct tm *tm)
57
64
}
58
65
#endif
59
66
67
+ #ifdef __APPLE__
68
+ #if (TARGET_OS_IPHONE )
69
+ extern char * * environ ;
70
+ #endif
71
+ #endif
72
+
73
+ #if defined(__FreeBSD__ ) || defined(__linux__ ) || defined(__ANDROID__ )
74
+ extern char * * environ ;
75
+ #endif
76
+
60
77
#if defined(__WIN32__ )
61
78
char * *
62
79
rust_env_pairs () {
@@ -323,8 +340,6 @@ rust_mktime(rust_tm* timeptr) {
323
340
}
324
341
325
342
#ifndef _WIN32
326
- #include <sys/types.h>
327
- #include <dirent.h>
328
343
329
344
DIR *
330
345
rust_opendir (char * dirname ) {
@@ -419,9 +434,6 @@ rust_unset_sigprocmask() {
419
434
420
435
#else
421
436
422
- #include <signal.h>
423
- #include <unistd.h>
424
-
425
437
void
426
438
rust_unset_sigprocmask () {
427
439
// this can't be safely converted to rust code because the
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 10
10
11
11
// Helper functions used only in tests
12
12
13
- #include "rust_globals.h"
13
+ #include <stdint.h>
14
+ #include <assert.h>
14
15
15
16
// These functions are used in the unit tests for C ABI calls.
16
17
Original file line number Diff line number Diff line change 19
19
switch to the C stack.
20
20
*/
21
21
22
- #include "rust_globals.h"
22
+ #include <stdint.h>
23
23
24
24
//Unwinding ABI declarations.
25
25
typedef int _Unwind_Reason_Code ;
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
+ #include <stdlib.h>
12
+ #include <assert.h>
13
+
11
14
#ifdef __WIN32__
12
15
// For alloca
13
16
#include <malloc.h>
20
23
21
24
#include "uv.h"
22
25
23
- #include "rust_globals.h"
24
-
25
26
void *
26
27
rust_uv_loop_new () {
27
28
// XXX libuv doesn't always ignore SIGPIPE even though we don't need it.
You can’t perform that action at this time.
0 commit comments