Skip to content

Commit

Permalink
Merge pull request eclipse-openj9#14214 from aixtools/issue_14183-0.30
Browse files Browse the repository at this point in the history
(0.30.0) AIX: correct a variable declaration by removing the keyword volatile
  • Loading branch information
pshipton authored Jan 6, 2022
2 parents 367f819 + aabd440 commit 6847177
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion runtime/tests/jsig/main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2016, 2018 IBM Corp. and others
* Copyright (c) 2016, 2022 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -58,7 +58,15 @@

#define PRIMARY_CALLED 1
#define SECONDARY_CALLED 2
#if !defined(_AIX)
static volatile sig_atomic_t handlerCalled = 0;
#else /* !defined(_AIX) */
/*
* In /usr/include/sys/signal.h the keyword 'volatile'
* is included in the typedef of sig_atomic_t
*/
static sig_atomic_t handlerCalled = 0;
#endif /* !defined(_AIX) */

typedef jint (JNICALL *CreateVM)(JavaVM**, JNIEnv**, void*);

Expand Down

0 comments on commit 6847177

Please sign in to comment.