unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 3ef4f2d83d00d37b7d1725660ae5ad8286bc6cf8 582 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
Fix "error: unknown type name 'cpu_set_t'".  Patch submitted upstream
http://lists.mcs.anl.gov/pipermail/petsc-dev/2014-May/015345.html

--- a/src/sys/threadcomm/impls/openmp/tcopenmp.c	2014-03-13 21:47:22.000000000 -0500
+++ b/src/sys/threadcomm/impls/openmp/tcopenmp.c	2014-04-02 14:44:57.185170151 -0500
@@ -1,6 +1,9 @@
 #define PETSC_DESIRE_FEATURE_TEST_MACROS
 #include <../src/sys/threadcomm/impls/openmp/tcopenmpimpl.h>
 #include <omp.h>
+#if defined(PETSC_HAVE_SCHED_CPU_SET_T)
+#include <sched.h>
+#endif
 
 PetscErrorCode PetscThreadCommGetRank_OpenMP(PetscInt *trank)
 {

debug log:

solving 3ef4f2d ...
found 3ef4f2d in https://git.savannah.gnu.org/cgit/guix.git

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).