summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent dot torri at gmail dot com>2015-12-28 14:23:50 +0100
committerJean-Philippe Andre <jp.andre@samsung.com>2015-12-29 22:10:50 +0900
commit2f2b39b2f7f984244eec83a408c7374c79ab9682 (patch)
tree2e87b3771331c9af0f0090f3dba36d81585b9434
parente218ca7d9ef920be823900229eba35dc74e5a9c4 (diff)
Fix compilation after dlfcn integration into Evil
-rw-r--r--configure.ac1
-rw-r--r--src/lib/elm_main.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 60dd3dfc6..d71d15042 100644
--- a/configure.ac
+++ b/configure.ac
@@ -399,7 +399,6 @@ case "$host_os" in
399dnl managed by evil 399dnl managed by evil
400 AC_DEFINE([HAVE_DLADDR], [1], [Define to 1 if you have the `dladdr' function.]) 400 AC_DEFINE([HAVE_DLADDR], [1], [Define to 1 if you have the `dladdr' function.])
401 have_dlopen="yes" 401 have_dlopen="yes"
402 requirement_elm_libs="-ldl ${requirement_elm_libs}"
403 ;; 402 ;;
404 linux*) 403 linux*)
405 AC_CHECK_LIB([dl], [dlopen], [res=yes], [res=no]) 404 AC_CHECK_LIB([dl], [dlopen], [res=yes], [res=no])
diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c
index 2799d46b0..333d3a930 100644
--- a/src/lib/elm_main.c
+++ b/src/lib/elm_main.c
@@ -2,7 +2,9 @@
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4 4
5#include <dlfcn.h> /* dlopen,dlclose,etc */ 5#ifndef _WIN32
6# include <dlfcn.h> /* dlopen,dlclose,etc */
7#endif
6 8
7#ifdef HAVE_CRT_EXTERNS_H 9#ifdef HAVE_CRT_EXTERNS_H
8# include <crt_externs.h> 10# include <crt_externs.h>