diff --git a/src/accountcreator.cpp b/src/accountcreator.cpp
index 847dcd502e480a7fe061a2909ece38a8e7402644..c196597e78018463243d8ae0ba14dec00d49404b 100644
--- a/src/accountcreator.cpp
+++ b/src/accountcreator.cpp
@@ -19,7 +19,7 @@
  */
 #include "accountcreator.h"
 #include "sipaccount.h"
-#ifdef HAVE_IAX2
+#ifdef USE_IAX
 #include "iaxaccount.h"
 #endif
 
@@ -39,7 +39,7 @@ AccountCreator::createAccount(AccountType type, AccountID accountID)
     case SIP_ACCOUNT:
       return new SIPAccount(accountID);
     break;
-#ifdef HAVE_IAX2
+#ifdef USE_IAX
     case IAX_ACCOUNT:
       return new IAXAccount(accountID);
     break;