[rtems commit] sys/socket.h: Add include of <sys/_types.h> for ssize_t

Joel Sherril joel at rtems.org
Fri Jan 23 17:12:25 UTC 2015

Module:    rtems
Branch:    master
Commit:    081a6971d9919d10aa7b5cfec701015850679435
Changeset: http://git.rtems.org/rtems/commit/?id=081a6971d9919d10aa7b5cfec701015850679435

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Fri Jan 23 09:43:59 2015 -0600

sys/socket.h: Add include of <sys/_types.h> for ssize_t

This was needed to make it possible to only include <sys/socket.h>
for the methods in this file in compliance with the POSIX
specification. This was identified by the Open Group FACE
Conformance Test Suite.

Close 2245.


 cpukit/libnetworking/sys/socket.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpukit/libnetworking/sys/socket.h b/cpukit/libnetworking/sys/socket.h
index 603cfe1..571f6e0 100644
--- a/cpukit/libnetworking/sys/socket.h
+++ b/cpukit/libnetworking/sys/socket.h
@@ -36,6 +36,7 @@
 #include <sys/cdefs.h>
 #include <rtems/bsdnet/_types.h>
+#include <sys/_types.h>
  * Definitions related to sockets: types, address families, options.

More information about the vc mailing list