@@ -1464,13 +1464,20 @@ AC_CHECK_MEMBER(struct sockaddr_un.sun_path, [ AC_DEFINE(OF_HAVE_UNIX_SOCKETS, 1, [Whether we have UNIX sockets]) AC_SUBST(USE_SRCS_UNIX_SOCKETS, '${SRCS_UNIX_SOCKETS}') ], [], [ + #ifdef OF_HAVE_SYS_TYPES_H + # include + #endif #ifdef OF_HAVE_SYS_UN_H # include #endif + + #ifdef __morphos__ + # error MorphOS has the struct but does not support it + #endif ]) AC_CHECK_FUNCS(paccept accept4, break) AC_CHECK_FUNCS(kqueue1 kqueue, [