bf68e53ed180c33099dbf066d506c1b73775a933
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / htop / 0001-native-affinity.patch
1 # This patch removes the check for native_affinity for cross compiling.
2 # This patch has been pushed to htop on 23 November 2011, however, is
3 # not in the 1.0 release and may not be exactly what Hisham puts into
4 # the official build.
5 #
6 # Signed-off-by: Andy Kennedy <Andy.Kennedy@adtran.com>
7 diff -Naur a/configure.ac b/configure.ac
8 --- a/configure.ac     2011-11-20 20:46:48.000000000 -0600
9 +++ b/configure.ac     2011-11-23 10:41:44.000000000 -0600
10 @@ -111,7 +111,6 @@
11  if test "$cross_compiling" = "no"; then
12  AC_CHECK_FILE($PROCDIR/stat,,AC_MSG_ERROR(Cannot find /proc/stat. Make sure you have a Linux-compatible /proc filesystem mounted. See the file README for help.))
13  AC_CHECK_FILE($PROCDIR/meminfo,,AC_MSG_ERROR(Cannot find /proc/meminfo. Make sure you have a Linux-compatible /proc filesystem mounted. See the file README for help.))
14 -fi
15  
16  AC_ARG_ENABLE(native_affinity, [AC_HELP_STRING([--enable-native-affinity], [enable native sched_setaffinity and sched_getaffinity for affinity support, disables hwloc])], ,enable_native_affinity="yes")
17  if test "x$enable_native_affinity" = xyes; then
18 @@ -130,6 +129,7 @@
19        AC_MSG_RESULT([yes])],
20       [AC_MSG_RESULT([no])])
21  fi
22 +fi
23  
24  AC_ARG_ENABLE(hwloc, [AC_HELP_STRING([--enable-hwloc], [enable hwloc support for CPU affinity])],, enable_hwloc="no")
25  if test "x$enable_hwloc" = xyes