unlink: new module, for Solaris 9 bug
[gnulib.git] / lib / sys_socket.in.h
index c4df33f..e3f6d6c 100644 (file)
@@ -428,15 +428,16 @@ extern "C" {
 #endif
 
 #if @GNULIB_ACCEPT4@
-# if !@HAVE_ACCEPT4@
 /* Accept a connection on a socket, with specific opening flags.
    The flags are a bitmask, possibly including O_CLOEXEC (defined in <fcntl.h>)
    and O_TEXT, O_BINARY (defined in "binary-io.h").
    See also the Linux man page at
    <http://www.kernel.org/doc/man-pages/online/pages/man2/accept4.2.html>.  */
+# if @HAVE_ACCEPT4@
+#  define accept4 rpl_accept4
+# endif
 extern int accept4 (int sockfd, struct sockaddr *addr, socklen_t *addrlen,
                    int flags);
-# endif
 #elif defined GNULIB_POSIXCHECK
 # undef accept4
 # define accept4(s,a,l,f) \