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
f2e8010d
Commit
f2e8010d
authored
Jan 18, 2022
by
Dietmar Scheidl
Committed by
Michael Grunder
Jan 24, 2022
Browse files
fix building on AIX and SunOS (#1031)
parent
e73ab2f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
f2e8010d
...
...
@@ -63,6 +63,9 @@ IF(WIN32 OR MINGW)
ELSEIF
(
CMAKE_SYSTEM_NAME MATCHES
"FreeBSD"
)
TARGET_LINK_LIBRARIES
(
hiredis PUBLIC m
)
TARGET_LINK_LIBRARIES
(
hiredis_static PUBLIC m
)
ELSEIF
(
CMAKE_SYSTEM_NAME MATCHES
"SunOS"
)
TARGET_LINK_LIBRARIES
(
hiredis PUBLIC socket
)
TARGET_LINK_LIBRARIES
(
hiredis_static PUBLIC socket
)
ENDIF
()
TARGET_INCLUDE_DIRECTORIES
(
hiredis PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
>
)
...
...
fmacros.h
View file @
f2e8010d
#ifndef __HIREDIS_FMACRO_H
#define __HIREDIS_FMACRO_H
#ifndef _AIX
#define _XOPEN_SOURCE 600
#define _POSIX_C_SOURCE 200112L
#endif
#if defined(__APPLE__) && defined(__MACH__)
/* Enable TCP_KEEPALIVE */
...
...
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