mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8071501: perfMemory_solaris.cpp failing to compile with "Error: dd_fd is not a member of DIR."
Force all Solaris builds to use the same version of the DIR structure. Reviewed-by: dcubed, dholmes, kvn
This commit is contained in:
parent
38b93bbbcb
commit
808f9cab05
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2015, 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
|
||||
|
@ -41,7 +41,9 @@
|
|||
* JNI conversion, which should be sorted out later.
|
||||
*/
|
||||
|
||||
#define __USE_LEGACY_PROTOTYPES__
|
||||
#include <dirent.h> /* For DIR */
|
||||
#undef __USE_LEGACY_PROTOTYPES__
|
||||
#include <sys/param.h> /* For MAXPATHLEN */
|
||||
#include <sys/socket.h> /* For socklen_t */
|
||||
#include <unistd.h> /* For F_OK, R_OK, W_OK */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue