8312013: avoid UnixConstants.java.template warning: '__linux__' is not defined on AIX

Reviewed-by: alanb, vtewari
This commit is contained in:
Matthias Baesken 2023-07-13 14:02:52 +00:00
parent 135f64e603
commit b587fc51a8

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2008, 2022, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2008, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -124,7 +124,7 @@ class UnixConstants {
// fgetxattr error codes for absent attributes depend on the OS: // fgetxattr error codes for absent attributes depend on the OS:
#ifdef _ALLBSD_SOURCE #ifdef _ALLBSD_SOURCE
static final int PREFIX_XATTR_NOT_FOUND = ENOATTR; static final int PREFIX_XATTR_NOT_FOUND = ENOATTR;
#elif __linux__ #elif defined(__linux__)
static final int PREFIX_XATTR_NOT_FOUND = ENODATA; static final int PREFIX_XATTR_NOT_FOUND = ENODATA;
#else #else
// not supported (dummy values will not be used at runtime). // not supported (dummy values will not be used at runtime).