Wireshark-commits: [Wireshark-commits] master b831f25: Include <sys/socket.h>, too.
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 23 May 2016 02:23:05 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=b831f251eff85c7cc32085bde5bc789f848a301f
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

b831f25 by Guy Harris (guy@xxxxxxxxxxxx):

    Include <sys/socket.h>, too.
    
    The Single UNIX Spec says AF_INET and AF_INET6 are defined by
    <sys/socket.h>, which means you *should* include it if you want those
    defines, and it doesn't look as if DragonFly BSD's <netinet/in.h>
    includes it.
    
    Do the includes in the order in whcih dumpcap does them.
    
    Change-Id: I2ee611fc08a5487d5b8ed48396aa2a49447c881a
    Reviewed-on: https://code.wireshark.org/review/15542
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  b07d5c7   Explicitly include <netinet/in.h>.
    adds  b831f25   Include <sys/socket.h>, too.


Summary of changes:
 wsutil/interface.c |   16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)