summaryrefslogtreecommitdiff
path: root/ACE
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-02-17 12:10:23 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-02-17 12:10:23 +0100
commitab276a1dd1442d0f0d27d44eb4ccf3ad913db57b (patch)
tree38692c6c474ec000f334e483767564e24ffc2be1 /ACE
parent620a751859ad758a77362c818e3ca2f279919bcb (diff)
downloadATCD-ab276a1dd1442d0f0d27d44eb4ccf3ad913db57b.tar.gz
Add new ACE_LACKS_MSGHDR define which we use for the struct msghdr
* ACE/ace/config-win32-common.h: * ACE/ace/os_include/sys/os_socket.h:
Diffstat (limited to 'ACE')
-rw-r--r--ACE/ace/config-win32-common.h1
-rw-r--r--ACE/ace/os_include/sys/os_socket.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/ACE/ace/config-win32-common.h b/ACE/ace/config-win32-common.h
index 4664b7016d0..05d69ff24cd 100644
--- a/ACE/ace/config-win32-common.h
+++ b/ACE/ace/config-win32-common.h
@@ -280,6 +280,7 @@
#define ACE_LACKS_MADVISE
#define ACE_LACKS_MKFIFO
#define ACE_LACKS_MODE_MASKS
+#define ACE_LACKS_MSGHDR
#define ACE_LACKS_PTHREAD_H
#define ACE_LACKS_PWD_FUNCTIONS
#define ACE_LACKS_RAND_R
diff --git a/ACE/ace/os_include/sys/os_socket.h b/ACE/ace/os_include/sys/os_socket.h
index 8f134c576ec..8c8ce66f9ab 100644
--- a/ACE/ace/os_include/sys/os_socket.h
+++ b/ACE/ace/os_include/sys/os_socket.h
@@ -73,7 +73,7 @@ extern "C"
};
# endif /* ACE_LACKS_LINGER */
-#if defined (ACE_WIN32)
+#if defined (ACE_LACKS_MSGHDR)
struct msghdr
{
/// Optional address
@@ -99,7 +99,7 @@ extern "C"
};
typedef WSACMSGHDR cmsghdr;
-#endif /* ACE_WIN32 */
+#endif /* ACE_LACKS_MSGHDR */
// Using msghdr::msg_control and msghdr::msg_controllen portably:
// For a parameter of size n, reserve space for ACE_CMSG_SPACE(n) bytes.