Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
JBRE 8u sources cannot be build on Ubuntu 8.10 (gcc 8.2.0)
Browse files Browse the repository at this point in the history
Fixed compiler errors in hotspot sources
  • Loading branch information
avu committed Jan 29, 2019
1 parent f030db9 commit 4426ec2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/os/linux/vm/os_linux.inline.hpp
Expand Up @@ -116,6 +116,11 @@ inline int os::ftruncate(int fd, jlong length) {

inline struct dirent* os::readdir(DIR* dirp, dirent *dbuf)
{
// readdir_r has been deprecated since glibc 2.24.
// See https://sourceware.org/bugzilla/show_bug.cgi?id=19056 for more details.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"

dirent* p;
int status;
assert(dirp != NULL, "just checking");
Expand All @@ -129,6 +134,8 @@ inline struct dirent* os::readdir(DIR* dirp, dirent *dbuf)
return NULL;
} else
return p;

#pragma GCC diagnostic pop
}

inline int os::closedir(DIR *dirp) {
Expand Down
1 change: 1 addition & 0 deletions src/os_cpu/linux_x86/vm/os_linux_x86.cpp
Expand Up @@ -541,6 +541,7 @@ JVM_handle_linux_signal(int sig,
err.report_and_die();

ShouldNotReachHere();
return false;
}

void os::Linux::init_thread_fpu_state(void) {
Expand Down

0 comments on commit 4426ec2

Please sign in to comment.