vppinfra: type prove vec_new and vec_resize
[vpp.git] / src / vppinfra / linux / syscall.h
index 1ae029d..c07cad6 100644 (file)
 #include <unistd.h>
 #include <sys/syscall.h>
 
+#ifndef HAVE_GETCPU
 static inline int
-getcpu (unsigned *cpu, unsigned *node, void *tcache)
+getcpu (unsigned *cpu, unsigned *node)
 {
-  return syscall (__NR_getcpu, cpu, node, tcache);
+  return syscall (__NR_getcpu, cpu, node, 0);
 }
+#endif
 
 static inline long
 set_mempolicy (int mode, const unsigned long *nodemask, unsigned long maxnode)