]> granicus.if.org Git - strace/commitdiff
xlat/skf_off: use XLAT_MACROS_ONLY instead of #stop
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 14 Aug 2019 19:05:08 +0000 (19:05 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 14 Aug 2019 19:05:08 +0000 (19:05 +0000)
* xlat/skf_off.in: Remove #stop.
* bpf_sock_filter.c: Wrap "xlat/skf_off.h" inclusion in XLAT_MACROS_ONLY.

bpf_sock_filter.c
xlat/skf_off.in

index e66faa8ec74b782da399cf3d8d18e45ac20fd9c8..c66070e1df5e4eac31025978559369a50fc47398 100644 (file)
@@ -14,7 +14,9 @@
 
 #include <linux/filter.h>
 #include "xlat/skf_ad.h"
-#include "xlat/skf_off.h"
+#define XLAT_MACROS_ONLY
+# include "xlat/skf_off.h"
+#undef XLAT_MACROS_ONLY
 
 static bool
 print_sock_filter_k(const struct bpf_filter_block *const fp)
index 6db30a9a6a643cf0587307bc669abfb21a1957b4..afb75eeab7b60ab66420f9249909c5e1290dbdf5 100644 (file)
@@ -1,4 +1,3 @@
 SKF_AD_OFF     -0x1000
 SKF_NET_OFF    -0x100000
 SKF_LL_OFF     -0x200000
-#stop