Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing include #1573

Merged
merged 1 commit into from
Dec 13, 2021
Merged

Add missing include #1573

merged 1 commit into from
Dec 13, 2021

Conversation

ellert
Copy link
Contributor

@ellert ellert commented Dec 12, 2021

Fixes GNU/Hurd build

/<>/src/XrdApps/XrdPrep.cc: In function ‘int main(int, char**)’:
/<>/src/XrdApps/XrdPrep.cc:109:34: error: ‘MAXPATHLEN’ was not declared in this scope
109 | static const int MaxPathLen = MAXPATHLEN+1;
| ^~~~~~~~~~
/<>/src/XrdApps/XrdPrep.cc:213:24: error: size of array ‘fBuff’ is not an integral constant-expression
213 | char *sP, fBuff[MaxPathLen];
| ^~~~~~~~~~
src/CMakeFiles/xrdprep.dir/build.make:78: recipe for target 'src/CMakeFiles/xrdprep.dir/XrdApps/XrdPrep.cc.o' failed

Fixes GNU/Hurd build

/<<PKGBUILDDIR>>/src/XrdApps/XrdPrep.cc: In function ‘int main(int, char**)’:
/<<PKGBUILDDIR>>/src/XrdApps/XrdPrep.cc:109:34: error: ‘MAXPATHLEN’ was not declared in this scope
  109 |    static const int MaxPathLen = MAXPATHLEN+1;
      |                                  ^~~~~~~~~~
/<<PKGBUILDDIR>>/src/XrdApps/XrdPrep.cc:213:24: error: size of array ‘fBuff’ is not an integral constant-expression
  213 |        char *sP, fBuff[MaxPathLen];
      |                        ^~~~~~~~~~
src/CMakeFiles/xrdprep.dir/build.make:78: recipe for target 'src/CMakeFiles/xrdprep.dir/XrdApps/XrdPrep.cc.o' failed
@abh3 abh3 merged commit 3c9b80f into xrootd:master Dec 13, 2021
@ellert ellert deleted the missing-include branch December 13, 2021 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants