Skip to content

Commit 10191dc

Browse files
[XrdHttp] Fix XrdHttpProtocol layout mismatch when Kerberos is enabled
Export HAVE_HTTP_KRB5 to all XrdHttpUtils consumers so the XrdHttp plugin allocates the same object size as the library constructor. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent ab2f86a commit 10191dc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/XrdHttp/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ target_link_libraries(XrdHttpUtils
4545
)
4646

4747
if(BUILD_KRB5)
48-
target_compile_definitions(XrdHttpUtils PRIVATE HAVE_HTTP_KRB5)
48+
# PUBLIC so all consumers of XrdHttpProtocol (e.g. the XrdHttp plugin)
49+
# see the same class layout as XrdHttpUtils.
50+
target_compile_definitions(XrdHttpUtils PUBLIC HAVE_HTTP_KRB5)
4951
target_include_directories(XrdHttpUtils PRIVATE ${KERBEROS5_INCLUDE_DIR})
5052
target_link_libraries(XrdHttpUtils PRIVATE ${KERBEROS5_LIBRARIES})
5153
endif()

0 commit comments

Comments
 (0)