File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tools/testing/selftests/mqueue Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3535#include <sys/time.h>
3636#include <sys/resource.h>
3737#include <sys/stat.h>
38+ #include <sys/param.h>
3839#include <mqueue.h>
3940#include <popt.h>
4041#include <error.h>
@@ -73,7 +74,6 @@ static char *usage =
7374char * MAX_MSGS = "/proc/sys/fs/mqueue/msg_max" ;
7475char * MAX_MSGSIZE = "/proc/sys/fs/mqueue/msgsize_max" ;
7576
76- #define min (a , b ) ((a) < (b) ? (a) : (b))
7777#define MAX_CPUS 64
7878char * cpu_option_string ;
7979int cpus_to_pin [MAX_CPUS ];
@@ -551,7 +551,7 @@ int main(int argc, char *argv[])
551551 perror ("sysconf(_SC_NPROCESSORS_ONLN)" );
552552 exit (1 );
553553 }
554- cpus_online = min (MAX_CPUS , sysconf (_SC_NPROCESSORS_ONLN ));
554+ cpus_online = MIN (MAX_CPUS , sysconf (_SC_NPROCESSORS_ONLN ));
555555 cpu_set = CPU_ALLOC (cpus_online );
556556 if (cpu_set == NULL ) {
557557 perror ("CPU_ALLOC()" );
You can’t perform that action at this time.
0 commit comments