Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
367ac44a
Commit
367ac44a
authored
Jun 18, 2011
by
Pieter Noordhuis
Browse files
Remove private feature macros for Solaris from compiler flags
parent
2cd46456
Changes
3
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
367ac44a
...
@@ -16,7 +16,7 @@ CC:=$(shell sh -c 'type $(CC) 2>/dev/null 1>/dev/null && echo $(CC) || echo gcc'
...
@@ -16,7 +16,7 @@ CC:=$(shell sh -c 'type $(CC) 2>/dev/null 1>/dev/null && echo $(CC) || echo gcc'
uname_S
:=
$(
shell
sh
-c
'uname -s 2>/dev/null || echo not'
)
uname_S
:=
$(
shell
sh
-c
'uname -s 2>/dev/null || echo not'
)
OPTIMIZATION
?=
-O3
OPTIMIZATION
?=
-O3
ifeq
($(uname_S),SunOS)
ifeq
($(uname_S),SunOS)
CFLAGS
?=
$(OPTIMIZATION)
-fPIC
-Wall
-W
-D__EXTENSIONS__
-D_XPG6
$(ARCH)
$(PROF)
CFLAGS
?=
$(OPTIMIZATION)
-fPIC
-Wall
-W
$(ARCH)
$(PROF)
CCLINK
?=
-ldl
-lnsl
-lsocket
CCLINK
?=
-ldl
-lnsl
-lsocket
LDFLAGS
?=
-L
.
LDFLAGS
?=
-L
.
DYLIBSUFFIX
=
so
DYLIBSUFFIX
=
so
...
...
async.c
View file @
367ac44a
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
* POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include "fmacros.h"
#include <string.h>
#include <string.h>
#include <strings.h>
#include <strings.h>
#include <assert.h>
#include <assert.h>
...
...
test.c
View file @
367ac44a
#include "fmacros.h"
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
...
...
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