git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6138c2d
)
event/opdl: fix build using C99 mode
author
Andrew Rybchenko
<arybchenko@solarflare.com>
Sun, 21 Jan 2018 09:48:39 +0000
(09:48 +0000)
committer
Thomas Monjalon
<thomas@monjalon.net>
Sun, 21 Jan 2018 10:52:55 +0000
(11:52 +0100)
RHEL 7.4 gcc (GCC) 4.8.5
20150623
(Red Hat 4.8.5-16)
‘for’ loop initial declarations are only allowed in C99 mode
Fixes:
4236ce9bf5bf
("event/opdl: add OPDL ring infrastructure library")
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/event/opdl/Makefile
patch
|
blob
|
history
diff --git
a/drivers/event/opdl/Makefile
b/drivers/event/opdl/Makefile
index
747ae5b
..
a8aff2c
100644
(file)
--- a/
drivers/event/opdl/Makefile
+++ b/
drivers/event/opdl/Makefile
@@
-7,6
+7,8
@@
include $(RTE_SDK)/mk/rte.vars.mk
LIB = librte_pmd_opdl_event.a
# build flags
+CFLAGS += -std=c99
+CFLAGS += -D_XOPEN_SOURCE=600
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
# for older GCC versions, allow us to initialize an event using