main is called main not amain!
[asterisk/asterisk.git] / main / cygload.c
index fc9c1c2..3b8951b 100644 (file)
@@ -13,7 +13,7 @@ int main(int argc, char *argv[])
        main_f ast_main = NULL;
        void *handle = dlopen("asterisk.dll", 0);
        if (handle)
-               ast_main = (main_f)dlsym(handle, "amain");
+               ast_main = (main_f)dlsym(handle, "main");
        if (ast_main)
                return ast_main(argc, argv);
        fprintf(stderr, "could not load asterisk, %s\n", dlerror());