This is an autogenerated patch header for a single-debian-patch file. The
delta against upstream is either kept as a single patch, or maintained
in some VCS, and exported as a single patch instead of more manageable
atomic patches.

--- critnib-1.0.orig/CMakeLists.txt
+++ critnib-1.0/CMakeLists.txt
@@ -11,7 +11,7 @@ endif (NOT CMAKE_BUILD_TYPE)
 set(CMAKE_C_FLAGS "-Wall -Werror=format-security ${CMAKE_C_FLAGS}")
 
 add_library(critnib SHARED critnib.c)
-set(libs critnib ${CMAKE_THREAD_LIBS_INIT})
+set(libs critnib ${CMAKE_THREAD_LIBS_INIT} -latomic)
 add_executable(m main.c)
 target_link_libraries(m ${libs})
 
--- critnib-1.0.orig/tests/th.c
+++ critnib-1.0/tests/th.c
@@ -17,9 +17,11 @@ static word nthreads, nrthreads, nwthrea
 
 static word nproc()
 {
+#ifndef __gnu_hurd__
     cpu_set_t set;
     if (!pthread_getaffinity_np(pthread_self(), sizeof(set), &set))
         return CPU_COUNT(&set);
+#endif
     return 0;
 }
 
