1 /* Generated by ./xlat/gen.sh from ./xlat/setsock_options.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined __hppa__ 7 #if defined(SO_ATTACH_FILTER) || (defined(HAVE_DECL_SO_ATTACH_FILTER) && HAVE_DECL_SO_ATTACH_FILTER) 8 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 9 static_assert((SO_ATTACH_FILTER) == (16410), "SO_ATTACH_FILTER != 16410"); 10 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 11 #else 12 # define SO_ATTACH_FILTER 16410 13 #endif 14 #else 15 #if defined(SO_ATTACH_FILTER) || (defined(HAVE_DECL_SO_ATTACH_FILTER) && HAVE_DECL_SO_ATTACH_FILTER) 16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 17 static_assert((SO_ATTACH_FILTER) == (26), "SO_ATTACH_FILTER != 26"); 18 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 19 #else 20 # define SO_ATTACH_FILTER 26 21 #endif 22 #endif 23 24 #ifndef XLAT_MACROS_ONLY 25 26 # ifdef IN_MPERS 27 28 # error static const struct xlat setsock_options in mpers mode 29 30 # else 31 32 static 33 const struct xlat setsock_options[] = { 34 #if defined __hppa__ 35 XLAT(SO_ATTACH_FILTER), 36 #else 37 XLAT(SO_ATTACH_FILTER), 38 #endif 39 XLAT_END 40 }; 41 42 # endif /* !IN_MPERS */ 43 44 #endif /* !XLAT_MACROS_ONLY */ 45