examples/performance-thread: fix build on FreeBSD
[dpdk.git] / examples / performance-thread / l3fwd-thread / main.c
index f6154ac..2d98473 100644 (file)
 #define APP_LOOKUP_METHOD             APP_LOOKUP_LPM
 #endif
 
+#ifndef __GLIBC__ /* sched_getcpu() is glibc specific */
+#define sched_getcpu() rte_lcore_id()
+#endif
+
 static int
 check_ptype(int portid)
 {