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 11, 2015
1 parent 83aed4e commit 278853d
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 278853d

Please sign in to comment.