Ignore:
Timestamp:
Dec 8, 2011, 2:32:54 PM (14 years ago)
Author:
dmik
Message:

Port WSOCK32 and IPHLPAPI to GCC/kBuild.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/src/iphlpapi/iphlwrap.h

    r21720 r21865  
    88#include <netinet/tcp.h>
    99#include <nerrno.h>
    10 
    11 int _System os2_ioctl (int, unsigned long, char *, int);
    1210
    1311inline int _os2_ioctl (int a, unsigned long b, char *c, int d)
     
    2321
    2422#undef  os2_ioctl
    25 #define os2_ioctl _os2_ioctl
    26 
    27 inline int _ioctl(int a, int b, char *c, int d)
    28 {
    29  int yyrc;
    30  USHORT sel = RestoreOS2FS();
    31 
    32     yyrc = ioctl(a, b, c, d);
    33     SetFS(sel);
    34 
    35     return yyrc;
    36 }
    37 
    38 #undef  ioctl
    39 #define ioctl _ioctl
     23#define ioctl _os2_ioctl
    4024
    4125inline int _res_init(void)
Note: See TracChangeset for help on using the changeset viewer.