require '_h2ph_pre.ph';

unless(defined(&_LINUX_NET_H)) {
    eval 'sub _LINUX_NET_H () {1;}' unless defined(&_LINUX_NET_H);
    require 'linux/config.ph';
    require 'linux/socket.ph';
    require 'linux/wait.ph';
    eval 'sub NPROTO () {32;}' unless defined(&NPROTO);
    eval 'sub SYS_SOCKET () {1;}' unless defined(&SYS_SOCKET);
    eval 'sub SYS_BIND () {2;}' unless defined(&SYS_BIND);
    eval 'sub SYS_CONNECT () {3;}' unless defined(&SYS_CONNECT);
    eval 'sub SYS_LISTEN () {4;}' unless defined(&SYS_LISTEN);
    eval 'sub SYS_ACCEPT () {5;}' unless defined(&SYS_ACCEPT);
    eval 'sub SYS_GETSOCKNAME () {6;}' unless defined(&SYS_GETSOCKNAME);
    eval 'sub SYS_GETPEERNAME () {7;}' unless defined(&SYS_GETPEERNAME);
    eval 'sub SYS_SOCKETPAIR () {8;}' unless defined(&SYS_SOCKETPAIR);
    eval 'sub SYS_SEND () {9;}' unless defined(&SYS_SEND);
    eval 'sub SYS_RECV () {10;}' unless defined(&SYS_RECV);
    eval 'sub SYS_SENDTO () {11;}' unless defined(&SYS_SENDTO);
    eval 'sub SYS_RECVFROM () {12;}' unless defined(&SYS_RECVFROM);
    eval 'sub SYS_SHUTDOWN () {13;}' unless defined(&SYS_SHUTDOWN);
    eval 'sub SYS_SETSOCKOPT () {14;}' unless defined(&SYS_SETSOCKOPT);
    eval 'sub SYS_GETSOCKOPT () {15;}' unless defined(&SYS_GETSOCKOPT);
    eval 'sub SYS_SENDMSG () {16;}' unless defined(&SYS_SENDMSG);
    eval 'sub SYS_RECVMSG () {17;}' unless defined(&SYS_RECVMSG);
    eval("sub SS_FREE () { 0; }") unless defined(&SS_FREE);
    eval("sub SS_UNCONNECTED () { 1; }") unless defined(&SS_UNCONNECTED);
    eval("sub SS_CONNECTING () { 2; }") unless defined(&SS_CONNECTING);
    eval("sub SS_CONNECTED () { 3; }") unless defined(&SS_CONNECTED);
    eval("sub SS_DISCONNECTING () { 4; }") unless defined(&SS_DISCONNECTING);
    eval 'sub __SO_ACCEPTCON () {(1<<16);}' unless defined(&__SO_ACCEPTCON);
}
1;
