Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
977be3ee
Commit
977be3ee
authored
Jun 21, 2010
by
Daniel Fischer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a readability optimization in CMake code that broke IPv6 support.
parent
073943cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
configure.cmake
configure.cmake
+10
-2
No files found.
configure.cmake
View file @
977be3ee
...
...
@@ -98,6 +98,14 @@ FUNCTION(MY_CHECK_TYPE_SIZE type defbase)
ENDIF
()
ENDFUNCTION
()
# Same for structs, setting HAVE_STRUCT_<name> instead
FUNCTION
(
MY_CHECK_STRUCT_SIZE type defbase
)
CHECK_TYPE_SIZE
(
"struct
${
type
}
"
SIZEOF_
${
defbase
}
)
IF
(
SIZEOF_
${
defbase
}
)
SET
(
HAVE_STRUCT_
${
defbase
}
1 PARENT_SCOPE
)
ENDIF
()
ENDFUNCTION
()
# Searches function in libraries
# if function is found, sets output parameter result to the name of the library
# if function is found in libc, result will be empty
...
...
@@ -991,8 +999,8 @@ ELSEIF(WIN32)
SET
(
CMAKE_EXTRA_INCLUDE_FILES
${
CMAKE_EXTRA_INCLUDE_FILES
}
winsock2.h ws2ipdef.h
)
ENDIF
()
MY_CHECK_
TYPE_SIZE
(
"struct
sockaddr_in6"
SOCKADDR_IN6
)
MY_CHECK_
TYPE_SIZE
(
"struct
in6_addr"
IN6_ADDR
)
MY_CHECK_
STRUCT_SIZE
(
"
sockaddr_in6"
SOCKADDR_IN6
)
MY_CHECK_
STRUCT_SIZE
(
"
in6_addr"
IN6_ADDR
)
IF
(
HAVE_STRUCT_SOCKADDR_IN6 OR HAVE_STRUCT_IN6_ADDR
)
SET
(
HAVE_IPV6 TRUE CACHE INTERNAL
""
)
...
...
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