RFR: 8046269: Build broken : THIS_FILE : undeclared identifier
Seán Coffey
sean.coffey at oracle.com
Sat Jun 7 10:35:12 UTC 2014
jdk7u-dev has windows build issues since JDK-8032901 fix was pushed.
bug report : https://bugs.openjdk.java.net/browse/JDK-8046269
Fix is simple and involves defining THIS_FILE if not defined. Not an
issue for JDK 8u since that logic is already there.
> diff --git a/src/windows/transport/shmem/shmem_md.c
> b/src/windows/transport/shmem/shmem_md.c
> --- a/src/windows/transport/shmem/shmem_md.c
> +++ b/src/windows/transport/shmem/shmem_md.c
> @@ -1,5 +1,5 @@
> /*
> - * Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights
> reserved.
> + * Copyright (c) 1999, 2014, 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
> @@ -30,6 +30,11 @@
> #include "sysShmem.h"
> #include "shmemBase.h" /* for exitTransportWithError */
>
> +/* Use THIS_FILE when it is available. */
> +#ifndef THIS_FILE
> + #define THIS_FILE __FILE__
> +#endif
> +
> /*
> * These functions are not completely universal. For now, they are used
> * exclusively for Jbug's shared memory transport mechanism. They have
regards,
Sean.
More information about the serviceability-dev
mailing list