Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
5d73649e
Commit
5d73649e
authored
16 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Define SHUT_WR (and SHUT_RD for kicks) for WinSock targets.
parent
f5c4e6d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xpdev/sockwrap.h
+6
-5
6 additions, 5 deletions
src/xpdev/sockwrap.h
with
6 additions
and
5 deletions
src/xpdev/sockwrap.h
+
6
−
5
View file @
5d73649e
...
...
@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 200
8
Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 200
9
Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
...
...
@@ -129,6 +129,11 @@ typedef struct {
#undef EINPROGRESS
#define EINPROGRESS (WSAEINPROGRESS-WSABASEERR)
/* for shutdown() */
#define SHUT_RD SD_RECEIVE
#define SHUT_WR SD_SEND
#define SHUT_RDWR SD_BOTH
#define s_addr S_un.S_addr
#define socklen_t int
...
...
@@ -178,10 +183,6 @@ int retry_bind(SOCKET s, const struct sockaddr *addr, socklen_t addrlen
}
#endif
#ifndef SHUT_RDWR
#define SHUT_RDWR 2
/* for shutdown() */
#endif
#ifndef IPPORT_HTTP
#define IPPORT_HTTP 80
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment