Print this page
rev 7148 : 8071501: perfMemory_solaris.cpp failing to compile with "Error: dd_fd is not a member of DIR."
Summary: Force all Solaris builds to use the same version of the DIR structure.
Reviewed-by: dcubed, dholmes, kvn

Split Split Close
Expand all
Collapse all
          --- old/hotspot/src/share/vm/utilities/globalDefinitions_sparcWorks.hpp
          +++ new/hotspot/src/share/vm/utilities/globalDefinitions_sparcWorks.hpp
   1    1  /*
   2      - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
        2 + * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
   3    3   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4    4   *
   5    5   * This code is free software; you can redistribute it and/or modify it
   6    6   * under the terms of the GNU General Public License version 2 only, as
   7    7   * published by the Free Software Foundation.
   8    8   *
   9    9   * This code is distributed in the hope that it will be useful, but WITHOUT
  10   10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11   11   * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12   12   * version 2 for more details (a copy is included in the LICENSE file that
↓ open down ↓ 13 lines elided ↑ open up ↑
  26   26  #define SHARE_VM_UTILITIES_GLOBALDEFINITIONS_SPARCWORKS_HPP
  27   27  
  28   28  #include "prims/jni.h"
  29   29  
  30   30  // This file holds compiler-dependent includes,
  31   31  // globally used constants & types, class (forward)
  32   32  // declarations and a few frequently used utility functions.
  33   33  
  34   34  
  35   35  # include <ctype.h>
       36 +#define __USE_LEGACY_PROTOTYPES__
  36   37  # include <dirent.h>
       38 +#undef __USE_LEGACY_PROTOTYPES__
  37   39  # include <string.h>
  38   40  # include <strings.h>     // for bsd'isms
  39   41  # include <stdarg.h>
  40   42  # include <stddef.h>      // for offsetof
  41   43  # include <stdio.h>
  42   44  # include <stdlib.h>
  43   45  # include <wchar.h>
  44   46  # include <stdarg.h>
  45   47  #ifdef SOLARIS
  46   48  # include <ieeefp.h>
↓ open down ↓ 245 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX