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

Missing headers in files #8

Closed
mohd-akram opened this issue May 5, 2024 · 0 comments
Closed

Missing headers in files #8

mohd-akram opened this issue May 5, 2024 · 0 comments

Comments

@mohd-akram
Copy link

Trying to compile this on macOS 10.10 fails due to missing headers:

src/infrastructure/filesystem.cc:36:9: error: use of undeclared identifier 'errno'
    if (errno == ENOENT) {
        ^
src/infrastructure/filesystem.cc:36:18: error: use of undeclared identifier 'ENOENT'
    if (errno == ENOENT) {
                 ^
2 errors generated.
make[2]: *** [CMakeFiles/ampache_browser.dir/src/infrastructure/filesystem.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
src/infrastructure/os_paths.cc:33:23: error: use of undeclared identifier 'getenv'
    if ((configHome = getenv("XDG_CONFIG_HOME")) && configHome[0] == PATH_SEP[0]) {
                      ^
src/infrastructure/os_paths.cc:45:22: error: use of undeclared identifier 'getenv'
    if ((cacheHome = getenv("XDG_CACHE_HOME")) && cacheHome[0] == PATH_SEP[0]) {
                     ^
src/infrastructure/os_paths.cc:65:17: error: use of undeclared identifier 'getenv'
    if ((home = getenv("HOME")) && home[0] == PATH_SEP[0]) {

It seems stdlib.h in os_paths.cc (for getenv) and errno.h in filesystem.cc are required.

@openhs openhs closed this as completed in 928a715 Jun 22, 2024
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

No branches or pull requests

1 participant