Index: uspace/lib/posix/stdio.h
===================================================================
--- uspace/lib/posix/stdio.h	(revision 27a8d1d3d84019ea6547c3b91398a951c91e2890)
+++ uspace/lib/posix/stdio.h	(revision 9a6034ab36d5414f5885e337716b20695219e794)
@@ -127,4 +127,10 @@
 
 #ifndef LIBPOSIX_INTERNAL
+	/* DEBUG macro does not belong to POSIX stdio.h. Its unconditional
+	 * definition in the native stdio.h causes unexpected behaviour of
+	 * applications which uses their own DEBUG macro (e.g. debugging
+	 * output is printed even if not desirable). */
+	#undef DEBUG
+
 	#define ctermid posix_ctermid
 
