diff --git a/main/logger.c b/main/logger.c
index 49d4a647f35daa4fa1a0c7fc755b487b1a91ef31..dc277d11a142ae12ee59ffc0acca6d4108d74055 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -953,7 +953,7 @@ void ast_log(int level, const char *file, int line, const char *function, const
 
 void ast_backtrace(void)
 {
-#ifdef Linux
+#ifdef linux
 #ifdef AST_DEVMODE
 	int count=0, i=0;
 	void **addresses;
@@ -975,7 +975,7 @@ void ast_backtrace(void)
 #else
 	ast_log(LOG_WARNING, "Must run configure with '--enable-dev-mode' for stack backtraces.\n");
 #endif
-#else /* ndef Linux */
+#else /* ndef linux */
 	ast_log(LOG_WARNING, "Inline stack backtraces are only available on the Linux platform.\n");
 #endif
 }