< prev index next >

src/java.base/unix/native/libjava/childproc.c

Print this page
rev 57914 : 8238380: java.base/unix/native/libjava/childproc.c "multiple definition" link errors with GCC10
Summary: Fixed libjava/childproc.o link errors caused by GCC10 default -fno-common
Reviewed-by: alanb, stuefe

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -32,10 +32,11 @@
 #include <unistd.h>
 #include <limits.h>
 
 #include "childproc.h"
 
+const char * const *parentPathv;
 
 ssize_t
 restartableWrite(int fd, const void *buf, size_t count)
 {
     ssize_t result;
< prev index next >