fixed some files for os2 build
This commit is contained in:
@ -29,6 +29,9 @@
|
||||
# include <types.h>
|
||||
# include <sys/socket.h>
|
||||
# include <netinet/in.h>
|
||||
/* though AF_INET6 is defined, there is no support
|
||||
* for it. so undefine it */
|
||||
# undef AF_INET6
|
||||
# pragma library("tcpip32.lib")
|
||||
#elif defined(__DOS__)
|
||||
/* TODO: consider watt-32 */
|
||||
|
@ -96,6 +96,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#if 0
|
||||
#if defined(SIOCGLIFCONF) && defined(SIOCGLIFNUM) && \
|
||||
defined(HAVE_STRUCT_LIFCONF) && defined(HAVE_STRUCT_LIFREQ)
|
||||
static int get_nwifs (qse_mmgr_t* mmgr, int s, int f, qse_xptl_t* nwifs)
|
||||
@ -152,6 +153,7 @@ oops:
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
static void free_nwifcfg (qse_mmgr_t* mmgr, qse_nwifcfg_node_t* cfg)
|
||||
@ -300,7 +302,19 @@ static void read_proc_net_if_inet6 (qse_nwifcfg_t* cfg, struct ifreq* ifr)
|
||||
|
||||
static int get_nwifcfg (int s, qse_nwifcfg_t* cfg, struct ifreq* ifr)
|
||||
{
|
||||
#if defined(SIOCGLIFADDR) && defined(SIOCGLIFINDEX) && \
|
||||
#if defined(_WIN32)
|
||||
return -1;
|
||||
|
||||
#elif defined(__OS2__)
|
||||
|
||||
return -1;
|
||||
|
||||
#elif defined(__DOS__)
|
||||
|
||||
return -1;
|
||||
|
||||
|
||||
#elif defined(SIOCGLIFADDR) && defined(SIOCGLIFINDEX) && \
|
||||
defined(HAVE_STRUCT_LIFCONF) && defined(HAVE_STRUCT_LIFREQ)
|
||||
/* opensolaris */
|
||||
struct lifreq lifrbuf;
|
||||
|
Reference in New Issue
Block a user