Module: xenomai-forge
Branch: next
Commit: 0929f628728ec1641dc59d56630a1998fa9550ea
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=0929f628728ec1641dc59d56630a1998fa9550ea

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sun Apr 14 16:48:19 2013 +0200

lib/cobalt: fallback to __real_socket upon EPROTONOSUPPORT

---

 lib/cobalt/rtdm.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lib/cobalt/rtdm.c b/lib/cobalt/rtdm.c
index e0a405e..c6d963d 100644
--- a/lib/cobalt/rtdm.c
+++ b/lib/cobalt/rtdm.c
@@ -87,7 +87,8 @@ COBALT_IMPL(int, socket, (int protocol_family, int 
socket_type, int protocol))
                                protocol_family, socket_type, protocol);
        if (ret >= 0)
                ret += __rtdm_fd_start;
-       else if (ret == -EAFNOSUPPORT || ret == -ENOSYS) {
+       else if (ret == -EAFNOSUPPORT || ret == -EPROTONOSUPPORT || 
+                ret == -ENOSYS) {
                ret = __STD(socket(protocol_family, socket_type, protocol));
 
                if (ret >= __rtdm_fd_start) {


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to