fixed build problems caused by missing struct sockaddr_in6 and added an option second parater to dir::open()

This commit is contained in:
2014-04-22 05:16:30 +00:00
parent 257dbbb586
commit e865215e3d
3 changed files with 64 additions and 4 deletions

View File

@ -695,6 +695,7 @@ static int read_dir_to_tbuf (qse_dir_t* dir, void** name)
}
#endif
return 1;
/* ------------------------------------------------------------------- */
#endif

View File

@ -47,6 +47,10 @@
#else
# include <sys/socket.h>
# include <netinet/in.h>
# if defined(QSE_SIZEOF_STRUCT_SOCKADDR_IN6) && (QSE_SIZEOF_STRUCT_SOCKADDR_IN6 == 0)
# undef AF_INET6
# endif
#endif
union sockaddr_t