Branch: refs/heads/master
Home: https://github.com/xrootd/xrootd
Commit: f19047336036f9d1e6d5e67a1fde5ce059f72ac1
https://github.com/xrootd/xrootd/commit/f19047336036f9d1e6d5e67a1fde5ce059f72ac1
Author: Costin Grigoras <[log in to unmask]>
Date: 2023-02-09 (Thu, 09 Feb 2023)
Changed paths:
M src/XrdPosix/XrdPosixAdmin.cc
Log Message:
-----------
Update XrdPosixAdmin.cc
Fixes compilation issue on older gcc
```
/usr/src/xrootd-5.5.2/src/XrdPosix/XrdPosixAdmin.cc: In member function ‘XrdCl::URL* XrdPosixAdmin::FanOut(int&)’:
/usr/src/xrootd-5.5.2/src/XrdPosix/XrdPosixAdmin.cc:70:32: error: ‘ptrdiff_t’ was not declared in this scope
if (i > std::numeric_limits<ptrdiff_t>::max() / sizeof(XrdCl::URL))
^
/usr/src/xrootd-5.5.2/src/XrdPosix/XrdPosixAdmin.cc:70:32: note: suggested alternatives:
In file included from /usr/include/c++/5/limits:42:0,
from /usr/src/xrootd-5.5.2/src/XrdPosix/XrdPosixAdmin.cc:32:
/usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:197:28: note: ‘std::ptrdiff_t’
typedef __PTRDIFF_TYPE__ ptrdiff_t;
^
/usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:197:28: note: ‘std::ptrdiff_t’
/usr/src/xrootd-5.5.2/src/XrdPosix/XrdPosixAdmin.cc:70:41: error: template argument 1 is invalid
if (i > std::numeric_limits<ptrdiff_t>::max() / sizeof(XrdCl::URL))
^
src/CMakeFiles/XrdPosix.dir/build.make:62: recipe for target 'src/CMakeFiles/XrdPosix.dir/XrdPosix/XrdPosixAdmin.cc.o' failed
make[2]: *** [src/CMakeFiles/XrdPosix.dir/XrdPosix/XrdPosixAdmin.cc.o] Error 1
```
########################################################################
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1
|