https://bugs.linaro.org/show_bug.cgi?id=1025
Bug ID: 1025
Summary: odp_generator uses usleep which is not
POSIX_C_SOURCE=200809L complaint
Product: OpenDataPlane
Version: 0.6
Hardware: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: ---
Component: General
Assignee: [email protected]
Reporter: [email protected]
Code fails to compile with
make CFLAGS="-std=c99"
odp_generator.c:349:4: error: implicit declaration of function âusleepâ
[-Werror=implicit-function-declaration]
usleep(args->appl.interval * 1000);
Nanosleep is a preferred over usleep [1] and is then covered by
-D_POSIX_C_SOURCE=200809L
However this file contains many TODO notes to use odp_timer which would remove
the issue completely.
[1] http://man7.org/linux/man-pages/man2/nanosleep.2.html
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp