Upon trying to compile cmake with uClibc-0.9.28 (on linux-2.6.14.3 on i686 pc),
I encountered an error, caused by a slight typo. The patch is simple and is
included here.

Just thought the cmake devs would like to know,
Osor

-- 
Osor Hirutonis
Case Western Reserve University
This is supposed to fix a small typo which prevents compilation in a uClibc
environment. Without the extra parentheses, the statement defined(__UCLIBC__)
accomplished nothing (since whenever you use uClibc, you are not on win32).

diff -Naur cmake-2.4.2.old/Utilities/cmcurl/mprintf.c 
cmake-2.4.2/Utilities/cmcurl/mprintf.c
--- cmake-2.4.2.old/Utilities/cmcurl/mprintf.c  2006-05-19 01:57:10.000000000 
-0400
+++ cmake-2.4.2/Utilities/cmcurl/mprintf.c      2006-05-19 02:00:18.000000000 
-0400
@@ -1134,7 +1134,7 @@
   return retcode;
 }
 
-#if !defined( WIN32) || defined(__UCLIBC__) /* not needed on win32 */
+#if !(defined( WIN32) || defined(__UCLIBC__)) /* not on win32 or uClibc */
 extern int fputc(int, FILE *);
 #endif
 
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to