summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
475135e)
* support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
HAVE_SVCUDP_SOCKET.
+2002-09-12 H.J. Lu <hjl@lucon.org>
+
+ * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
+ HAVE_SVCUDP_SOCKET.
+
2002-09-12 H.J. Lu <hjl@lucon.org>
* configure.in: Remove checking svctcp_socket and svcudp_socket.
2002-09-12 H.J. Lu <hjl@lucon.org>
* configure.in: Remove checking svctcp_socket and svcudp_socket.
#ifdef _LIBC
# include <libintl.h>
#else
#ifdef _LIBC
# include <libintl.h>
#else
# ifndef _
# define _(s) (s)
# endif
# ifndef _
# define _(s) (s)
# endif
# define __close(f) close ((f))
#endif
# define __close(f) close ((f))
#endif
-#if !defined HAVE_SVCTCP_SOCKET || !defined HAVE_SVCUDP_SOCKET
static int
svc_socket (u_long number, int type, int protocol, int reuse)
{
static int
svc_socket (u_long number, int type, int protocol, int reuse)
{
-#ifndef HAVE_SVCTCP_SOCKET
/*
* Create and bind a TCP socket based on program number
*/
/*
* Create and bind a TCP socket based on program number
*/
{
return svc_socket (number, SOCK_STREAM, IPPROTO_TCP, reuse);
}
{
return svc_socket (number, SOCK_STREAM, IPPROTO_TCP, reuse);
}
-#ifndef HAVE_SVCUDP_SOCKET
/*
* Create and bind a UDP socket based on program number
*/
/*
* Create and bind a UDP socket based on program number
*/
{
return svc_socket (number, SOCK_DGRAM, IPPROTO_UDP, reuse);
}
{
return svc_socket (number, SOCK_DGRAM, IPPROTO_UDP, reuse);
}