Line 0
Link Here
|
|
|
1 |
changeset: 57994:6925fca95959 |
2 |
user: qpzhang |
3 |
date: Tue Feb 04 21:27:10 2020 +0800 |
4 |
summary: 8238380: java.base/unix/native/libjava/childproc.c "multiple definition" link errors with GCC10 |
5 |
|
6 |
diff -r 8f6ffa575f63 -r 6925fca95959 src/java.base/unix/native/libjava/childproc.c |
7 |
--- src/java.base/unix/native/libjava/childproc.c Tue Feb 11 11:17:37 2020 +0800 |
8 |
+++ src/java.base/unix/native/libjava/childproc.c Tue Feb 04 21:27:10 2020 +0800 |
9 |
@@ -1,5 +1,5 @@ |
10 |
/* |
11 |
- * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. |
12 |
+ * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved. |
13 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
14 |
* |
15 |
* This code is free software; you can redistribute it and/or modify it |
16 |
@@ -34,6 +34,7 @@ |
17 |
|
18 |
#include "childproc.h" |
19 |
|
20 |
+const char * const *parentPathv; |
21 |
|
22 |
ssize_t |
23 |
restartableWrite(int fd, const void *buf, size_t count) |
24 |
diff -r 8f6ffa575f63 -r 6925fca95959 src/java.base/unix/native/libjava/childproc.h |
25 |
--- src/java.base/unix/native/libjava/childproc.h Tue Feb 11 11:17:37 2020 +0800 |
26 |
+++ src/java.base/unix/native/libjava/childproc.h Tue Feb 04 21:27:10 2020 +0800 |
27 |
@@ -1,5 +1,5 @@ |
28 |
/* |
29 |
- * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
30 |
+ * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved. |
31 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
32 |
* |
33 |
* This code is free software; you can redistribute it and/or modify it |
34 |
@@ -126,7 +126,7 @@ |
35 |
* The cached and split version of the JDK's effective PATH. |
36 |
* (We don't support putenv("PATH=...") in native code) |
37 |
*/ |
38 |
-const char * const *parentPathv; |
39 |
+extern const char * const *parentPathv; |
40 |
|
41 |
ssize_t restartableWrite(int fd, const void *buf, size_t count); |
42 |
int restartableDup2(int fd_from, int fd_to); |
43 |
|