projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update from texinfo
[gnulib.git]
/
lib
/
sys_socket.in.h
diff --git
a/lib/sys_socket.in.h
b/lib/sys_socket.in.h
index
83a50bd
..
6508bf7
100644
(file)
--- a/
lib/sys_socket.in.h
+++ b/
lib/sys_socket.in.h
@@
-1,6
+1,6
@@
/* Provide a sys/socket header file for systems lacking it (read: MinGW)
and for systems where it is incomplete.
/* Provide a sys/socket header file for systems lacking it (read: MinGW)
and for systems where it is incomplete.
- Copyright (C) 2005-200
8
Free Software Foundation, Inc.
+ Copyright (C) 2005-200
9
Free Software Foundation, Inc.
Written by Simon Josefsson.
This program is free software; you can redistribute it and/or modify
Written by Simon Josefsson.
This program is free software; you can redistribute it and/or modify
@@
-145,6
+145,11
@@
rpl_fd_isset (SOCKET fd, fd_set * set)
# define close close_used_without_including_unistd_h
# endif
# define close close_used_without_including_unistd_h
# endif
+# if @HAVE_WINSOCK2_H@ && !defined _GL_UNISTD_H
+# undef gethostname
+# define gethostname gethostname_used_without_including_unistd_h
+# endif
+
# if @GNULIB_SOCKET@
# if @HAVE_WINSOCK2_H@
# undef socket
# if @GNULIB_SOCKET@
# if @HAVE_WINSOCK2_H@
# undef socket
@@
-251,7
+256,7
@@
extern int rpl_getsockname (int, struct sockaddr *, int *);
# if @HAVE_WINSOCK2_H@
# undef getsockopt
# define getsockopt rpl_getsockopt
# if @HAVE_WINSOCK2_H@
# undef getsockopt
# define getsockopt rpl_getsockopt
-extern int rpl_getsockopt (int, int, int, void *,
in
t *);
+extern int rpl_getsockopt (int, int, int, void *,
socklen_
t *);
# endif
# elif @HAVE_WINSOCK2_H@
# undef getsockopt
# endif
# elif @HAVE_WINSOCK2_H@
# undef getsockopt
@@
-353,7
+358,7
@@
extern int rpl_sendto (int, const void *, int, int, struct sockaddr *, int);
# if @HAVE_WINSOCK2_H@
# undef setsockopt
# define setsockopt rpl_setsockopt
# if @HAVE_WINSOCK2_H@
# undef setsockopt
# define setsockopt rpl_setsockopt
-extern int rpl_setsockopt (int, int, int, const void *,
in
t);
+extern int rpl_setsockopt (int, int, int, const void *,
socklen_
t);
# endif
# elif @HAVE_WINSOCK2_H@
# undef setsockopt
# endif
# elif @HAVE_WINSOCK2_H@
# undef setsockopt