Commit abdf7c7c authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5368 compile fix for test-affinity

git-svn-id: file:///svn/toku/tokudb@48695 c7de825b-a66e-492c-adef-691d508d4ae1
parent bf0ec2d0
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it." #ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it."
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <toku_assert.h> #include <toku_assert.h>
#include <toku_os.h> #include <toku_os.h>
#include "toku_affinity.h" #include "toku_affinity.h"
...@@ -35,9 +36,10 @@ int main(void) { ...@@ -35,9 +36,10 @@ int main(void) {
} }
// don't want to expose this api unless we use it somewhere // don't want to expose this api unless we use it somewhere
#if defined(HAVE_SCHED_GETAFFINITY) || defined(HAVE_CPUSET_GETAFFINITY) #if defined(HAVE_CPUSET_GETAFFINITY)
r = CPU_CMP(&set, &chk); r = CPU_CMP(&set, &chk);
#else #else
// hope this is good enough on linux
r = memcmp(&set, &chk, sizeof set); r = memcmp(&set, &chk, sizeof set);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment