aboutsummaryrefslogtreecommitdiff
path: root/ftmacros.h
diff options
context:
space:
mode:
Diffstat (limited to 'ftmacros.h')
-rw-r--r--ftmacros.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ftmacros.h b/ftmacros.h
index 19b9fb43..8e319493 100644
--- a/ftmacros.h
+++ b/ftmacros.h
@@ -49,6 +49,13 @@
*/
#if defined(sun) || defined(__sun)
#define __EXTENSIONS__
+
+ /*
+ * We also need to define _XPG4_2 in order to get
+ * the Single UNIX Specification version of
+ * recvmsg().
+ */
+ #define _XPG4_2
#elif defined(_hpux) || defined(hpux) || defined(__hpux)
#define _REENTRANT
#elif defined(__linux__) || defined(linux) || defined(__linux)