Skip to content

Commit

Permalink
lt_interface: properly check OPAL_HAVE_LTDL_ADVISE
Browse files Browse the repository at this point in the history
  • Loading branch information
jsquyres committed Feb 7, 2015
1 parent d591286 commit 66b383f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions opal/util/lt_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@
#include "opal/util/output.h"

#if OPAL_WANT_LIBLTDL
struct opal_lt_dlhandle_st {lt_dlhandle dlhandle;};
struct opal_lt_dladvise_st {lt_dladvise dladvise;};
#else
struct opal_lt_dlhandle_st {void *dlhandle;};
struct opal_lt_dladvise_st {void *dladvise;};
struct opal_lt_dlhandle_st { lt_dlhandle dlhandle; };
#else /* OPAL_WANT_LIBLTDL */
struct opal_lt_dlhandle_st { void *dlhandle; };
#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)
{
#if OPAL_WANT_LIBLTDL
Expand Down

0 comments on commit 66b383f

Please sign in to comment.