Project

General

Profile

Bug #649

Errors with musl

Added by David Demelier about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Category:
irccd
Target version:
Start date:
04/27/2017
Due date:
% Done:

100%

Estimated time:
0.30 h
MFD after:
MFD revision:
Branch:
default
Bookmark:
@
Platform:

Description

Compiling on Alpine ends with:

[ 14%] Building CXX object libcommon/CMakeFiles/libcommon.dir/irccd/fs.cpp.o
/home/markand/irccd/libcommon/irccd/fs.cpp: In function 'std::__cxx11::string irccd::fs::cwd()':
/home/markand/irccd/libcommon/irccd/fs.cpp:492:15: error: 'PATH_MAX' was not declared in this scope
     char path[PATH_MAX];
               ^~~~~~~~
/home/markand/irccd/libcommon/irccd/fs.cpp:494:18: error: 'path' was not declared in this scope
     if (::getcwd(path, sizeof (path)) == nullptr)
                  ^~~~
/home/markand/irccd/libcommon/irccd/fs.cpp:497:12: error: 'path' was not declared in this scope
     return path;
            ^~~~
make[2]: *** [libcommon/CMakeFiles/libcommon.dir/build.make:87: libcommon/CMakeFiles/libcommon.dir/irccd/fs.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:358: libcommon/CMakeFiles/libcommon.dir/all] Error 2
make: *** [Makefile:150: all] Error 2

Associated revisions

Revision 438:ecb6b9342475 (diff)
Added by David Demelier over 2 years ago

Fix #649: missing limits.h for PATH_MAX on Linux

History

#1

Updated by David Demelier about 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
#2

Updated by David Demelier about 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF