Commit 9a0036a1 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

change DL_OPEN to HAVE_LIBDL

parent f6d32429
......@@ -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
......
......@@ -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)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment