Edit

kc3-lang/libressl/include/compat/arpa/inet.h

Branch :

  • Browse

    Commit

  • Author : Brent Cook
    Date : 2014-07-10 22:06:10
    Hash : 5d8a1cf7
    Message : add initial CMake and Visual Studio build support This moves the compatibility include files from include to include/compat so we can use the awful MS C compiler <../include/> trick to emulate the GNU #include_next extension. This also removes a few old compat files we do not need anymore.

  • include/compat/arpa/inet.h
  • /*
     * Public domain
     * arpa/inet.h compatibility shim
     */
    
    #ifndef _WIN32
    #include_next <arpa/inet.h>
    #else
    #include <win32netcompat.h>
    
    #ifndef AI_ADDRCONFIG
    #define AI_ADDRCONFIG               0x00000400
    #endif
    
    #endif
    
    #ifndef HAVE_INET_PTON
    int inet_pton(int af, const char * src, void * dst);
    #endif