X-Git-Url: http://git.onelab.eu/?p=ipfw.git;a=blobdiff_plain;f=glue.h;fp=glue.h;h=c05ee4aefaf40a4e4543290509e62aaf3fca3e3a;hp=bf7043d2602447535cb831eb5db931cbf94dcb9e;hb=5ad9fec40da13c449d50def12f9cea6e24b6a708;hpb=f1a44f1ebacf274e0f35970bfc8ee5aa07aa9aca diff --git a/glue.h b/glue.h index bf7043d..c05ee4a 100644 --- a/glue.h +++ b/glue.h @@ -23,7 +23,7 @@ * SUCH DAMAGE. */ /* - * $Id: glue.h 4363 2009-12-08 16:06:54Z marta $ + * $Id: glue.h 4413 2009-12-10 08:57:02Z luigi $ * * glue code to adapt the FreeBSD version to linux and windows, * userland and kernel. @@ -260,6 +260,11 @@ struct route_in6 { }; #define INET_ADDRSTRLEN 16 +#ifdef linux +/* linux does not have sin_len in sockaddr */ +#define sin_len __pad[0] +#endif /* linux */ + /* * List of values used for set/getsockopt options. * The base value on FreeBSD is defined as a macro,