summaryrefslogtreecommitdiff
path: root/boilerplate
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-09-13 17:35:29 -0600
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-09-14 13:32:18 +0300
commitcf0fed2191c2b5ebce8855def1dd302ccf8e039a (patch)
tree9df818069ca795df41ec28c252b60e8e76811e2c /boilerplate
parent1c7ac6c47addd6825c4f49f514fe3ffb708e3813 (diff)
[build] Check for dlsym in both libdl and libc.
The BSDs have dlsym() in libc rather than libdl.
Diffstat (limited to 'boilerplate')
-rw-r--r--boilerplate/cairo-boilerplate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/boilerplate/cairo-boilerplate.c b/boilerplate/cairo-boilerplate.c
index 46bb0574..1414699c 100644
--- a/boilerplate/cairo-boilerplate.c
+++ b/boilerplate/cairo-boilerplate.c
@@ -45,7 +45,7 @@
#include <assert.h>
#include <errno.h>
-#if HAVE_DL
+#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
@@ -349,7 +349,7 @@ probe_target (const cairo_boilerplate_target_t *target)
if (target->probe == NULL)
return TRUE;
-#if HAVE_DL
+#if HAVE_DLSYM
return dlsym (NULL, target->probe) != NULL;
#else
return TRUE;