diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 15:00:12 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 15:00:12 +0000 |
commit | 7792c21583f7131ad63a9cb6e25b7ef38652d3a7 (patch) | |
tree | 35ae86a1ec3a303f6ac7c0146111c635eff41fb4 /sysutils/socket/files/patch-globals.h | |
parent | - Switch databases/libmemcache to USES=libtool, drop .la files (diff) |
Rename sysutils/ patch-xy patches to reflect the files they modify.
Notes
Notes:
svn path=/head/; revision=363335
Diffstat (limited to 'sysutils/socket/files/patch-globals.h')
-rw-r--r-- | sysutils/socket/files/patch-globals.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sysutils/socket/files/patch-globals.h b/sysutils/socket/files/patch-globals.h new file mode 100644 index 000000000000..f4f4ae6f79bf --- /dev/null +++ b/sysutils/socket/files/patch-globals.h @@ -0,0 +1,31 @@ +*** globals.h.orig Fri Mar 22 11:42:23 2002 +--- globals.h Fri Mar 22 12:05:22 2002 +*************** +*** 13,19 **** + # include <sys/param.h> + #endif + +- + /* globals for socket */ + + #define IN 0 /* standard input */ +--- 13,18 ---- +*************** +*** 27,35 **** +--- 26,41 ---- + #define A(args) () + #endif + ++ #ifndef USE_INET6 + int create_server_socket A((int port, int queue_length)) ; + int create_client_socket A((char **hostname, int port)) ; + int resolve_service A((char *name_or_number, char *protocol, char **name)) ; ++ #else /* USE_INET6 */ ++ int *create_server_sockets A((char **port, int queue_length)) ; ++ int create_client_socket A((char **hostname, char **port)) ; ++ int socket_local_name A((int socket, char **name, char **ipname, char **port)); ++ int socket_remote_name A((int socket, char **name, char **ipname, char **port)); ++ #endif /* USE_INET6 */ + void catchsig A((int sig)) ; + void usage A((void)) ; + int do_read_write A((int from, int to)) ; |