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 Jan 31, 2015
1 parent 91059f6 commit 1be0cfd
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 1be0cfd

Please sign in to comment.