On Wed, 2008-06-04 at 17:23 +0300, Kirill A. Shutemov wrote: > What do you think about hack like this: > > #include <linux/types.h> /* for __u* and __s* typedefs */ > #if defined(__KERNEL__) || !defined(_SYS_SOCKET_H) > #include <linux/socket.h> /* for "struct sockaddr" et al */ > #endif > #if defined(__KERNEL__) || !defined(_NET_IF_H) > #include <linux/if.h> /* for IFNAMSIZ and co... */ > #endif > > It avoids conflict between glibc's and kernel's headers if glibc's headers > include first. Anything which is dependent on ordering just makes matters worse, imho. -- dwmw2 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html