BSD portability enhancements (bug #234)
[asterisk/asterisk.git] / loader.c
index de5674c..5e7efce 100755 (executable)
--- a/loader.c
+++ b/loader.c
@@ -170,7 +170,9 @@ int ast_load_resource(char *resource_name)
        int res;
        struct module *m;
        int flags=RTLD_NOW;
+#ifdef RTLD_GLOBAL
        char *val;
+#endif
        char *key;
        int o;
        struct ast_config *cfg;