]> granicus.if.org Git - strace/blobdiff - rtnl_rule.c
rtnl_rule: decode fib_rule_uid_range without use of <linux/fib_rules.h>
[strace] / rtnl_rule.c
index 7c628dbd7f743fe95c3a24d0271a678e0c11ef45..509715247a6aeb36d81f7021371ca3014100645c 100644 (file)
@@ -42,8 +42,10 @@ decode_fib_rule_uid_range(struct tcb *const tcp,
                          const unsigned int len,
                          const void *const opaque_data)
 {
-#ifdef HAVE_STRUCT_FIB_RULE_UID_RANGE
-       struct fib_rule_uid_range range;
+       struct /* fib_rule_uid_range */ {
+               uint32_t start;
+               uint32_t end;
+       } range;
 
        if (len < sizeof(range))
                return false;
@@ -54,9 +56,6 @@ decode_fib_rule_uid_range(struct tcb *const tcp,
        }
 
        return true;
-#else
-       return false;
-#endif
 }
 
 static bool