-
Notifications
You must be signed in to change notification settings - Fork 17
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
"make build_c" fails on MacOS 10.12.6 with "undeclared identifier 'clock_nanosleep'" #13
Comments
I try to compile it on macOS
#ifdef _GNU_SOURCE
char * c = get_current_dir_name();
#else
char * c = (char *) malloc(PATH_MAX * sizeof(char));
getcwd(c, PATH_MAX);
#endif |
Thanks Eric Marchand I made those 3 changes and it compiles & works for me on MacOS Ventura. osx-ventura.patch Then I added to my ~/.zshrc
I also had to copy /usr/local/etc/advanced-shell-history/queries to ~/.ash/queries
|
I'll take the patch and test it out. FWIW - PR's are always welcome, but if it works I'll merge it myself. Thanks @alanmiller! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Build fails with
database.cpp:221:16: error: use of undeclared identifier 'clock_nanosleep'
.make build_c
:g++ --version
:The text was updated successfully, but these errors were encountered: