Index: configure.ac =================================================================== --- configure.ac +++ configure.ac @@ -821,7 +821,7 @@ ################################## AC_HEADER_STDC -AC_CHECK_HEADERS(unistd.h sys/select.h sys/msg.h sys/auxv.h) +AC_CHECK_HEADERS(unistd.h sys/select.h sys/msg.h sys/auxv.h sys/random.h) INSERT_SYS_SELECT_H= if test x"$ac_cv_header_sys_select_h" = xyes; then INSERT_SYS_SELECT_H=" include " Index: mpi/longlong.h =================================================================== --- mpi/longlong.h +++ mpi/longlong.h @@ -305,7 +305,7 @@ (ph) = __ph; \ } while (0) # define count_leading_zeros(count, x) \ - __asm__ ("clz %0, %1\n" \ + __asm__ ("clz %w0, %w1\n" \ : "=r" ((count)) \ : "r" ((UDItype)(x))) #endif /* __aarch64__ */ Index: random/rndlinux.c =================================================================== --- random/rndlinux.c +++ random/rndlinux.c @@ -29,6 +29,9 @@ #ifdef HAVE_GETTIMEOFDAY # include #endif +#if defined(HAVE_SYS_RANDOM_H) +# include +#endif #include #include #include