mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-04 11:33:48 +00:00
chore(Deps/Acelite): Update to 6.5.10 (#3450)
This commit is contained in:
17
deps/acelite/ace/Flag_Manip.cpp
vendored
17
deps/acelite/ace/Flag_Manip.cpp
vendored
@@ -5,6 +5,10 @@
|
||||
# include "ace/OS_NS_errno.h"
|
||||
#endif /* ACE_LACKS_FCNTL */
|
||||
|
||||
#if defined (ACE_LACKS_IOCTL)
|
||||
# include "ace/OS_NS_devctl.h"
|
||||
#endif
|
||||
|
||||
#if !defined (__ACE_INLINE__)
|
||||
#include "ace/Flag_Manip.inl"
|
||||
#endif /* __ACE_INLINE__ */
|
||||
@@ -29,7 +33,13 @@ ACE::set_flags (ACE_HANDLE handle, int flags)
|
||||
// blocking: (0)
|
||||
{
|
||||
int nonblock = 1;
|
||||
# if defined (ACE_LACKS_IOCTL)
|
||||
int dev_info;
|
||||
return ACE_OS::posix_devctl (handle, FIONBIO, &nonblock,
|
||||
sizeof nonblock, &dev_info);
|
||||
# else
|
||||
return ACE_OS::ioctl (handle, FIONBIO, &nonblock);
|
||||
# endif
|
||||
}
|
||||
default:
|
||||
ACE_NOTSUP_RETURN (-1);
|
||||
@@ -56,7 +66,6 @@ int
|
||||
ACE::clr_flags (ACE_HANDLE handle, int flags)
|
||||
{
|
||||
ACE_TRACE ("ACE::clr_flags");
|
||||
|
||||
#if defined (ACE_LACKS_FCNTL)
|
||||
switch (flags)
|
||||
{
|
||||
@@ -65,7 +74,13 @@ ACE::clr_flags (ACE_HANDLE handle, int flags)
|
||||
// blocking: (0)
|
||||
{
|
||||
int nonblock = 0;
|
||||
# if defined (ACE_LACKS_IOCTL)
|
||||
int dev_info;
|
||||
return ACE_OS::posix_devctl (handle, FIONBIO, &nonblock,
|
||||
sizeof nonblock, &dev_info);
|
||||
# else
|
||||
return ACE_OS::ioctl (handle, FIONBIO, &nonblock);
|
||||
# endif
|
||||
}
|
||||
default:
|
||||
ACE_NOTSUP_RETURN (-1);
|
||||
|
||||
Reference in New Issue
Block a user