diff --git a/pd/src/configure.in b/pd/src/configure.in index 259c7c38f0a1600183a9d8a7b64716b101b0f5df..2f9fb28abb9da42efc0ba823c99e36a4474cc307 100644 --- a/pd/src/configure.in +++ b/pd/src/configure.in @@ -208,7 +208,7 @@ dnl This should be fixed so Pd can use ALSA shared libraries where appropriate. LDFLAGS="$LDFLAGS -static" fi EXT=pd_linux - CPPFLAGS="-DDL_OPEN -DPA_USE_OSS -DUNIX -DUNISTD -fno-strict-aliasing" + CPPFLAGS="-DHAVE_LIBDL -DPA_USE_OSS -DUNIX -DUNISTD -fno-strict-aliasing" dnl No OSS on hurd if test `uname -s` = "GNU"; then diff --git a/pd/src/s_loader.c b/pd/src/s_loader.c index 7a78aca8064c1f99366b1452656cc7f01ce1e8e7..c4ea45f0572eda8ca67b8b25490495663652ecb8 100644 --- a/pd/src/s_loader.c +++ b/pd/src/s_loader.c @@ -2,7 +2,7 @@ * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ -#ifdef DL_OPEN +#ifdef HAVE_LIBDL #include <dlfcn.h> #endif #ifdef UNISTD @@ -173,7 +173,7 @@ gotone: strncat(filename, nameptr, FILENAME_MAX-strlen(filename)); filename[FILENAME_MAX-1] = 0; -#ifdef DL_OPEN +#ifdef HAVE_LIBDL dlobj = dlopen(filename, RTLD_NOW | RTLD_GLOBAL); if (!dlobj) {