Skip to content

Commit

Permalink
Merge pull request #4896 from dnakamura/dladdr_fix
Browse files Browse the repository at this point in the history
Rename OMR_HAS_DLADDR to OMR_HAVE_DLADDR
  • Loading branch information
youngar authored Mar 4, 2020
2 parents 3260b77 + fef615e commit 258c43d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/modules/OmrDetectSystemInformation.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ endmacro()
function(omr_check_dladdr)
list(APPEND CMAKE_REQUIRED_DEFINITIONS "-D_GNU_SOURCE")
list(APPEND CMAKE_REQUIRED_LIBRARIES ${CMAKE_DL_LIBS})
check_symbol_exists(dladdr "dlfcn.h" OMR_HAS_DLADDR)
check_symbol_exists(dladdr "dlfcn.h" OMR_HAVE_DLADDR)
endfunction()


Expand Down
2 changes: 1 addition & 1 deletion include_core/omrcfg.cmake.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
#cmakedefine OMR_USE_POSIX_SEMAPHORES
#cmakedefine OMR_USE_OSX_SEMAPHORES
#cmakedefine OMR_USE_ZOS_SEMAPHORES
#cmakedefine OMR_HAS_DLADDR
#cmakedefine OMR_HAVE_DLADDR

/**
* This flag enables the usage of OMR socket API. The API contains functions for
Expand Down
2 changes: 1 addition & 1 deletion include_core/omrcfg.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
#endif

#if defined(LINUX) || defined(OSX)
#define OMR_HAS_DLADDR
#define OMR_HAVE_DLADDR
#endif

/**
Expand Down
2 changes: 1 addition & 1 deletion port/unix/omrsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ omrsl_open_shared_library(struct OMRPortLibrary *portLibrary, char *name, uintpt
/* dlopen(2) called with NULL filename opens a handle to current executable. */
handle = dlopen(openExec ? NULL : openName, lazyOrNow);

#if defined(OMR_HAS_DLADDR)
#if defined(OMR_HAVE_DLADDR)
if ((NULL == handle) && !openExec) {
/* last ditch, try dir port lib DLL is in */
char portLibDir[MAX_STRING_LENGTH];
Expand Down

0 comments on commit 258c43d

Please sign in to comment.