diff --git a/hawk/lib/hawk-cmn.h b/hawk/lib/hawk-cmn.h index c14fb7e1..1e79c308 100644 --- a/hawk/lib/hawk-cmn.h +++ b/hawk/lib/hawk-cmn.h @@ -1362,15 +1362,15 @@ typedef enum hawk_log_mask_t hawk_log_mask_t; # undef HAWK_SIZEOF_SKAD_T # define HAWK_SIZEOF_SKAD_T HAWK_SIZEOF_STRUCT_SOCKADDR_IN #endif -#if (HAWK_SIZEOF_STRUCT_SOCKADDR_IN6 > 0) +#if (HAWK_SIZEOF_STRUCT_SOCKADDR_IN6 > HAWK_SIZEOF_SKAD_T) # undef HAWK_SIZEOF_SKAD_T # define HAWK_SIZEOF_SKAD_T HAWK_SIZEOF_STRUCT_SOCKADDR_IN6 #endif -#if (HAWK_SIZEOF_STRUCT_SOCKADDR_LL > 0) +#if (HAWK_SIZEOF_STRUCT_SOCKADDR_LL > HAWK_SIZEOF_SKAD_T) # undef HAWK_SIZEOF_SKAD_T # define HAWK_SIZEOF_SKAD_T HAWK_SIZEOF_STRUCT_SOCKADDR_LL #endif -#if (HAWK_SIZEOF_STRUCT_SOCKADDR_UN > 0) +#if (HAWK_SIZEOF_STRUCT_SOCKADDR_UN > HAWK_SIZEOF_SKAD_T) # undef HAWK_SIZEOF_SKAD_T # define HAWK_SIZEOF_SKAD_T HAWK_SIZEOF_STRUCT_SOCKADDR_UN #endif