]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Provide CPU_SET macro when we do not HAVE_CPU_AFFINITY to minimize #ifdefs.
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 23 Sep 2010 19:46:37 +0000 (13:46 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 23 Sep 2010 19:46:37 +0000 (13:46 -0600)
compat/cpu.h

index bd589d311059911c04de53b19e1d672939d2548d..37bcdf53996420c78625489c67c31fe41951012a 100644 (file)
@@ -61,6 +61,7 @@ typedef struct
 #define CPU_COUNT(set) 0
 #define CPU_AND(destset, srcset1, srcset2) (void)0
 #define CPU_ZERO(set) (void)0
+#define CPU_SET(set) (void)0
 inline int sched_setaffinity(int, size_t, cpu_set_t *) { return ENOTSUP; }
 inline int sched_getaffinity(int, size_t, cpu_set_t *) { return ENOTSUP; }