dlopen and friends are now required by elm_need_e_dbus(), remove HAVE_FORK conditiona...
authorEduardo de Barros Lima <eblima@gmail.com>
Thu, 10 Jan 2013 14:27:38 +0000 (14:27 +0000)
committerEduardo de Barros Lima <eblima@gmail.com>
Thu, 10 Jan 2013 14:27:38 +0000 (14:27 +0000)
Build was broken with the following message:

elm_main.c: In function 'elm_need_e_dbus':
elm_main.c:372:4: warning: implicit declaration of function 'dlopen' [-Wimplicit-function-declaration]
elm_main.c:372:46: error: 'RTLD_LAZY' undeclared (first use in this function)
elm_main.c:372:46: note: each undeclared identifier is reported only once for each function it appears in
elm_main.c:372:58: error: 'RTLD_GLOBAL' undeclared (first use in this function)
elm_main.c:374:4: warning: implicit declaration of function 'dlsym' [-Wimplicit-function-declaration]
elm_main.c:374:14: warning: assignment makes pointer from integer without a cast [enabled by default]
elm_main.c: In function '_elm_unneed_e_dbus':
elm_main.c:387:18: warning: assignment makes pointer from integer without a cast [enabled by default]
elm_main.c:392:4: warning: implicit declaration of function 'dlclose' [-Wimplicit-function-declaration]

I wonder if this is correct for other platforms other than linux??

SVN revision: 82573

legacy/elementary/src/lib/elm_main.c

index bb1c359..1a89e88 100644 (file)
@@ -2,9 +2,7 @@
 # include "elementary_config.h"
 #endif
 
-#ifdef HAVE_FORK
 #include <dlfcn.h> /* dlopen,dlclose,etc */
-#endif
 
 #ifdef HAVE_CRT_EXTERNS_H
 # include <crt_externs.h>