Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
BIND
Commits
f0eecd4d
Commit
f0eecd4d
authored
Sep 02, 2009
by
Evan Hunt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes needed for win32 build
parent
0c1326fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
lib/isc/include/isc/socket.h
lib/isc/include/isc/socket.h
+10
-2
lib/isc/win32/socket.c
lib/isc/win32/socket.c
+2
-2
No files found.
lib/isc/include/isc/socket.h
View file @
f0eecd4d
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: socket.h,v 1.9
1
2009/09/0
1 23:47:44 tbox
Exp $ */
/* $Id: socket.h,v 1.9
2
2009/09/0
2 18:32:25 each
Exp $ */
#ifndef ISC_SOCKET_H
#define ISC_SOCKET_H 1
...
...
@@ -296,16 +296,22 @@ typedef struct isc_socketmethods {
* This structure is actually just the common prefix of a socket manager
* object implementation's version of an isc_socketmgr_t.
* \brief
* Direct use of this structure by clients is forbidden.
mctx
implementations
* Direct use of this structure by clients is forbidden.
socket
implementations
* may change the structure. 'magic' must be ISCAPI_SOCKETMGR_MAGIC for any
* of the isc_socket_ routines to work. socket implementations must maintain
* all socket invariants.
* In effect, this definition is used only for non-BIND9 version ("export")
* of the library, and the export version does not work for win32. So, to avoid
* the definition conflict with win32/socket.c, we enable this definition only
* for non-Win32 (i.e. Unix) platforms.
*/
#ifndef WIN32
struct
isc_socketmgr
{
unsigned
int
impmagic
;
unsigned
int
magic
;
isc_socketmgrmethods_t
*
methods
;
};
#endif
#define ISCAPI_SOCKETMGR_MAGIC ISC_MAGIC('A','s','m','g')
#define ISCAPI_SOCKETMGR_VALID(m) ((m) != NULL && \
...
...
@@ -315,11 +321,13 @@ struct isc_socketmgr {
* This is the common prefix of a socket object. The same note as
* that for the socketmgr structure applies.
*/
#ifndef WIN32
struct
isc_socket
{
unsigned
int
impmagic
;
unsigned
int
magic
;
isc_socketmethods_t
*
methods
;
};
#endif
#define ISCAPI_SOCKET_MAGIC ISC_MAGIC('A','s','c','t')
#define ISCAPI_SOCKET_VALID(s) ((s) != NULL && \
...
...
lib/isc/win32/socket.c
View file @
f0eecd4d
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: socket.c,v 1.7
7
2009/09/0
1 00:22:28 jinmei
Exp $ */
/* $Id: socket.c,v 1.7
8
2009/09/0
2 18:32:25 each
Exp $ */
/* This code uses functions which are only available on Server 2003 and
* higher, and Windows XP and higher.
...
...
@@ -3675,7 +3675,7 @@ isc__socketmgr_setreserved(isc_socketmgr_t *manager, isc_uint32_t reserved) {
}
void
isc__socketmgr_maxudp
(
isc_socketmgr_t
*
manager
,
int
maxudp
)
{
isc__
_
socketmgr_maxudp
(
isc_socketmgr_t
*
manager
,
int
maxudp
)
{
UNUSED
(
manager
);
UNUSED
(
maxudp
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment