Split socket()'s type into two Rock fields (XCC)
[akaros.git] / tools / compilers / gcc-glibc / glibc-2.19-akaros / sysdeps / akaros / accept.c
index 2139958..52200d9 100644 (file)
@@ -71,7 +71,8 @@ int accept(int fd, __SOCKADDR_ARG addr, socklen_t * __restrict alen)
                         * our lcfd for the data file fd.  even if it fails, sock_data will
                         * close our lcfd for us.  when it succeeds, it'll open the data file
                         * before closing lcfd, which will keep the converstation alive. */
-                       nfd = _sock_data(lcfd, net, r->domain, r->stype, r->protocol, &nr);
+                       nfd = _sock_data(lcfd, net, r->domain, r->stype | r->sopts,
+                                        r->protocol, &nr);
                        if (nfd < 0)
                                return -1;