Message ID | 1398246839-15554-2-git-send-email-taras.kondratiuk@linaro.org |
---|---|
State | Superseded |
Headers | show |
diff --git a/platform/linux-generic/source/odp_linux.c b/platform/linux-generic/source/odp_linux.c index 6adeb3f..10fdf44 100644 --- a/platform/linux-generic/source/odp_linux.c +++ b/platform/linux-generic/source/odp_linux.c @@ -4,8 +4,9 @@ * SPDX-License-Identifier: BSD-3-Clause */ - +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include <sched.h> #include <stdlib.h> diff --git a/platform/linux-generic/source/odp_packet_socket.c b/platform/linux-generic/source/odp_packet_socket.c index 18ce3e5..a4c913a 100644 --- a/platform/linux-generic/source/odp_packet_socket.c +++ b/platform/linux-generic/source/odp_packet_socket.c @@ -5,8 +5,10 @@ * SPDX-License-Identifier: BSD-3-Clause */ - +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif + #include <sys/socket.h> #include <stdio.h> #include <stdlib.h>
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> --- platform/linux-generic/source/odp_linux.c | 3 ++- platform/linux-generic/source/odp_packet_socket.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-)