[CMake] Patch: uClibc typo in curl

Osor osor at case.edu
Fri May 19 15:42:47 EDT 2006


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
-------------- next part --------------
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
 


More information about the CMake mailing list