Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stunserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Stunserver
Commits
72e7a55f
Commit
72e7a55f
authored
Feb 02, 2012
by
John Selbie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for solaris 11
parent
d7a27efb
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
4 deletions
+25
-4
client/Makefile
client/Makefile
+1
-1
common.inc
common.inc
+9
-0
common/cmdlineparser.cpp
common/cmdlineparser.cpp
+5
-1
common/commonincludes.h
common/commonincludes.h
+2
-0
server/Makefile
server/Makefile
+1
-1
testcode/Makefile
testcode/Makefile
+1
-1
testcode/testpolling.cpp
testcode/testpolling.cpp
+6
-0
No files found.
client/Makefile
View file @
72e7a55f
...
...
@@ -15,6 +15,6 @@ clean:
rm
-f
$(PROJECT_OBJS)
$(PROJECT_TARGET)
$(PROJECT_TARGET)
:
$(PROJECT_OBJS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
common.inc
View file @
72e7a55f
...
...
@@ -10,6 +10,15 @@ DEBUG_FLAGS := -g
PROFILE_FLAGS
:=
-
O2
-
g
FLAVOR_FLAGS
=
$
(
RELEASE_FLAGS
)
#SOLARIS HACK
UNAME
:=
$
(
shell
uname
-
s
)
ifeq
(
$
(
UNAME
),
SunOS
)
SOCKET_LIBS
:=
-
lsocket
-
lnsl
endif
.
PHONY
:
all
clean
debug
%.
h
.
gch
:
%.
h
...
...
common/cmdlineparser.cpp
View file @
72e7a55f
...
...
@@ -30,7 +30,11 @@ const option* CCmdLineParser::GenerateOptions()
{
option
opt
=
{};
opt
.
has_arg
=
_listOptionDetails
[
index
].
has_arg
;
opt
.
name
=
_listOptionDetails
[
index
].
strName
.
c_str
();
// Solaris 11 (released in 2011), only sees fit to include header files from 2004 where "option::name" is just a char* and not const char*
opt
.
name
=
(
char
*
)(
_listOptionDetails
[
index
].
strName
.
c_str
());
_options
.
push_back
(
opt
);
}
...
...
common/commonincludes.h
View file @
72e7a55f
...
...
@@ -34,6 +34,7 @@
#include <unistd.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/time.h>
...
...
@@ -43,6 +44,7 @@
#include <net/if.h>
#include <stdarg.h>
#include <math.h>
#include <sys/termios.h>
#include <boost/shared_ptr.hpp>
#include <boost/scoped_array.hpp>
...
...
server/Makefile
View file @
72e7a55f
...
...
@@ -14,6 +14,6 @@ clean:
rm
-f
$(PROJECT_OBJS)
$(PROJECT_TARGET)
$(PROJECT_TARGET)
:
$(PROJECT_OBJS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
testcode/Makefile
View file @
72e7a55f
...
...
@@ -14,7 +14,7 @@ clean:
rm
-f
$(PROJECT_OBJS)
$(PROJECT_TARGET)
$(PROJECT_TARGET)
:
$(PROJECT_OBJS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
...
...
testcode/testpolling.cpp
View file @
72e7a55f
...
...
@@ -232,6 +232,12 @@ HRESULT CTestPolling::RemovePipe(int pipeindex)
ChkA
(
_spPolling
->
Remove
(
_pipes
[
pipeindex
].
readpipe
));
close
(
_pipes
[
pipeindex
].
readpipe
);
_pipes
[
pipeindex
].
readpipe
=
-
1
;
close
(
_pipes
[
pipeindex
].
writepipe
);
_pipes
[
pipeindex
].
writepipe
=
-
1
;
_pipes
.
erase
(
_pipes
.
begin
()
+
pipeindex
);
Cleanup:
...
...
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