[CMake] [PATCHES] patch to build on Hurd

Pierre Habouzit madcoder at debian.org
Wed Jun 13 06:32:35 EDT 2007


  Hurd does not have SA_SIGINFO, this patch is needed in order to build
cmake.

Index: cmake-2.4.6/Source/kwsys/ProcessUNIX.c
===================================================================
--- cmake-2.4.6.orig/Source/kwsys/ProcessUNIX.c
+++ cmake-2.4.6/Source/kwsys/ProcessUNIX.c
@@ -2328,7 +2328,12 @@
     struct sigaction newSigChldAction;
     memset(&newSigChldAction, 0, sizeof(struct sigaction));
     newSigChldAction.sa_sigaction = kwsysProcessesSignalHandler;
+    /* SA_SIGINFO isn't supported by Hurd. Checking is needed to avoid build failure */
+#ifdef SA_SIGINFO
     newSigChldAction.sa_flags = SA_NOCLDSTOP | SA_SIGINFO;
+#else
+    newSigChldAction.sa_flags = SA_NOCLDSTOP;
+#endif
 #ifdef SA_RESTART
     newSigChldAction.sa_flags |= SA_RESTART;
 #endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20070613/34248e59/attachment.pgp


More information about the CMake mailing list