diff --git a/src/porting.cpp b/src/porting.cpp
index f0337b6102f2cbb3d90fb22a1627f1f8ce497ac4..023f0cca7d431d20377ee65564eec7a4d661c528 100644
--- a/src/porting.cpp
+++ b/src/porting.cpp
@@ -627,6 +627,7 @@ bool setXorgWindowIcon(IrrlichtDevice *device)
 		setXorgWindowIconFromPath(device,
 			path_share + "/misc/" PROJECT_NAME "-xorg-icon-128.png");
 #	endif
+#else
 	return false;
 #endif
 }