summaryrefslogtreecommitdiffhomepage
path: root/auto/sched
blob: a6a4499b3a1a74ea8bf114b7cbd1a3b2b3adb55f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copyright (C) Andrew Clayton
# Copyright (C) NGINX, Inc.


nxt_feature="Linux sched_getaffinity()"
nxt_feature_name=NXT_HAVE_LINUX_SCHED_GETAFFINITY
nxt_feature_run=no
nxt_feature_incs=
nxt_feature_libs=
nxt_feature_test="#define _GNU_SOURCE
                  #include <sched.h>

                  int main(void) {
                      cpu_set_t set;

                      sched_getaffinity(0, sizeof(set), &set);
                      return 0;
                  }"
. auto/feature