File tree 1 file changed +2
-2
lines changed
tools/testing/selftests/mqueue
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 35
35
#include <sys/time.h>
36
36
#include <sys/resource.h>
37
37
#include <sys/stat.h>
38
+ #include <sys/param.h>
38
39
#include <mqueue.h>
39
40
#include <popt.h>
40
41
#include <error.h>
@@ -73,7 +74,6 @@ static char *usage =
73
74
char * MAX_MSGS = "/proc/sys/fs/mqueue/msg_max" ;
74
75
char * MAX_MSGSIZE = "/proc/sys/fs/mqueue/msgsize_max" ;
75
76
76
- #define min (a , b ) ((a) < (b) ? (a) : (b))
77
77
#define MAX_CPUS 64
78
78
char * cpu_option_string ;
79
79
int cpus_to_pin [MAX_CPUS ];
@@ -551,7 +551,7 @@ int main(int argc, char *argv[])
551
551
perror ("sysconf(_SC_NPROCESSORS_ONLN)" );
552
552
exit (1 );
553
553
}
554
- cpus_online = min (MAX_CPUS , sysconf (_SC_NPROCESSORS_ONLN ));
554
+ cpus_online = MIN (MAX_CPUS , sysconf (_SC_NPROCESSORS_ONLN ));
555
555
cpu_set = CPU_ALLOC (cpus_online );
556
556
if (cpu_set == NULL ) {
557
557
perror ("CPU_ALLOC()" );
You can’t perform that action at this time.
0 commit comments