Fix trunk build for Mac OS X 10.6
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 16 Jul 2010 04:23:02 +0000 (04:23 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 16 Jul 2010 04:23:02 +0000 (04:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@276870 65c4cc65-6c06-0410-ace0-fbb531ad65f3

tests/test_utils.c

index 454b97f..b6ff324 100644 (file)
@@ -256,9 +256,11 @@ AST_TEST_DEFINE(crypto_loaded_test)
        ast_test_status_update(test,
                               "address of __stub__ast_crypto_loaded is %p\n",
                               __stub__ast_crypto_loaded);
+#ifndef HAVE_ATTRIBUTE_weak_import
        ast_test_status_update(test,
                               "address of __ref__ast_crypto_loaded is %p\n",
                               __ref__ast_crypto_loaded);
+#endif
        ast_test_status_update(test,
                               "pointer to ast_crypto_loaded is %p\n",
                               ast_crypto_loaded);
@@ -309,9 +311,11 @@ AST_TEST_DEFINE(agi_loaded_test)
        ast_test_status_update(test,
                               "address of __stub__ast_agi_register is %p\n",
                               __stub__ast_agi_register);
+#ifndef HAVE_ATTRIBUTE_weak_import
        ast_test_status_update(test,
                               "address of __ref__ast_agi_register is %p\n",
                               __ref__ast_agi_register);
+#endif
        ast_test_status_update(test,
                               "pointer to ast_agi_register is %p\n",
                               ast_agi_register);