lt_interface: properly check OPAL_HAVE_LTDL_ADVISE
Этот коммит содержится в:
родитель
07480a3e8a
Коммит
08285c6361
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2013-2015 Cisco Systems, Inc. All rights reserved.
|
||||||
* Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
|
* Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
@ -24,13 +24,17 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if OPAL_WANT_LIBLTDL
|
#if OPAL_WANT_LIBLTDL
|
||||||
struct opal_lt_dlhandle_st {lt_dlhandle dlhandle;};
|
struct opal_lt_dlhandle_st { lt_dlhandle dlhandle; };
|
||||||
struct opal_lt_dladvise_st {lt_dladvise dladvise;};
|
#else /* OPAL_WANT_LIBLTDL */
|
||||||
#else
|
struct opal_lt_dlhandle_st { void *dlhandle; };
|
||||||
struct opal_lt_dlhandle_st {void *dlhandle;};
|
|
||||||
struct opal_lt_dladvise_st {void *dladvise;};
|
|
||||||
#endif /* OPAL_WANT_LIBLTDL */
|
#endif /* OPAL_WANT_LIBLTDL */
|
||||||
|
|
||||||
|
#if OPAL_WANT_LIBLTDL && OPAL_HAVE_LTDL_ADVISE
|
||||||
|
struct opal_lt_dladvise_st { lt_dladvise dladvise; };
|
||||||
|
#else /* OPAL_WANT_LIBLTDL && OPAL_HAVE_LTDL_ADVISE */
|
||||||
|
struct opal_lt_dladvise_st { void *dladvise; };
|
||||||
|
#endif /* OPAL_WANT_LIBLTDL && OPAL_HAVE_LTDL_ADVISE */
|
||||||
|
|
||||||
OPAL_DECLSPEC int opal_lt_dlinit(void)
|
OPAL_DECLSPEC int opal_lt_dlinit(void)
|
||||||
{
|
{
|
||||||
#if OPAL_WANT_LIBLTDL
|
#if OPAL_WANT_LIBLTDL
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user