Linux kernels 2.6.28 and earlier do not have RTM_GETDCB or RTM_SETDCB defined in their rtnetlink.h. Defining them in dcb_app.c should be safe since they have not changed their numerical value since they were introduced in 2.6.29.
Signed-off-by: Jim Ramsay <[email protected]> --- usr/dcb_app.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/usr/dcb_app.c b/usr/dcb_app.c index 78a5cd1..c31e2b8 100644 --- a/usr/dcb_app.c +++ b/usr/dcb_app.c @@ -38,6 +38,14 @@ #include "dcb_app.h" #include "sysfs.h" +/* Older kernels' rtnetlink.h may not have RTM_[GS]ETDCB */ +#ifndef RTM_GETDCB +# define RTM_GETDCB 78 +#endif +#ifndef RTM_SETDCB +# define RTM_SETDCB 79 +#endif + #define IEEE_SMASK_ETHTYPE (1 << IEEE_8021QAZ_APP_SEL_ETHERTYPE) #define IEEE_SMASK_STREAM (1 << IEEE_8021QAZ_APP_SEL_STREAM) #define IEEE_SMASK_DGRAM (1 << IEEE_8021QAZ_APP_SEL_DGRAM) -- 1.7.6 -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.
