diff mbox

[API-NEXT] add _POSIX_C_SOURCE 200809 to fix build

Message ID 1449616316-14721-1-git-send-email-mike.holmes@linaro.org
State New
Headers show

Commit Message

Mike Holmes Dec. 8, 2015, 11:11 p.m. UTC
fixes api-next

  CC       odp_schedule.lo
odp_schedule.c: In function 'schedule_loop':
odp_schedule.c:589:13: error: storage size of 'next' isn't known
  odp_time_t next, wtime;
             ^

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 platform/linux-generic/odp_schedule.c | 2 ++
 test/performance/odp_pktio_perf.c     | 3 +++
 2 files changed, 5 insertions(+)
diff mbox

Patch

diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c
index 3017876..c163634 100644
--- a/platform/linux-generic/odp_schedule.c
+++ b/platform/linux-generic/odp_schedule.c
@@ -4,6 +4,8 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#define _POSIX_C_SOURCE 200809L
+
 #include <string.h>
 #include <odp/schedule.h>
 #include <odp_schedule_internal.h>
diff --git a/test/performance/odp_pktio_perf.c b/test/performance/odp_pktio_perf.c
index 8737bc8..59a1007 100644
--- a/test/performance/odp_pktio_perf.c
+++ b/test/performance/odp_pktio_perf.c
@@ -20,6 +20,9 @@ 
  * a single packet rate can be specified on the command line.
  *
  */
+
+#define _POSIX_C_SOURCE 200809L
+
 #include <odp.h>
 
 #include <odp/helper/eth.h>