Comment 1 for bug 474751

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Looking in parser/Makefile, we have:
af_names.h: /usr/include/linux/socket.h
        LC_ALL=C sed -n -e '/$(__FILTER)/d' -e "s/^\#define[ \\t]\\+AF_\\([A-Z0-9_]\\+\\)[ \\t]\\+\\([0-9]\\+\\)\\(.*\\)\$$/#ifndef AF_\\1\\n# define AF_\\1 \\2\\n#endif\\nAA_GEN_NET_ENT(\"\\L\\1\", \\UAF_\\1)\\n/p" $< > $@
        # define local AF_MAX which may differ from that of bits/socket.h
        LC_ALL=C sed -n -e "s/^\#define[ \\t]\\+\\(AF_MAX\\)[ \\t]\\+\\([0-9]\\+\\)\\(.*\\)\$$/#define AA_\\1 \\2\n/p" $< >> $@
        cat $@

af_names.h is included in parser_misc. This fails on the new /usr/include/linux/socket.h and also doesn't work with /usr/include/bits/socket.h