From 9a0036a1773ea449c8b7d0aed10d1f57e5f60983 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Sun, 6 Sep 2015 17:55:46 -0400
Subject: [PATCH] change DL_OPEN to HAVE_LIBDL

---
 pd/src/configure.in | 2 +-
 pd/src/s_loader.c   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pd/src/configure.in b/pd/src/configure.in
index 259c7c38f..2f9fb28ab 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 7a78aca80..c4ea45f05 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)
     {
-- 
GitLab