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

checking for POSIX regcomp #241

Closed
polluks opened this issue Jan 1, 2022 · 2 comments
Closed

checking for POSIX regcomp #241

polluks opened this issue Jan 1, 2022 · 2 comments

Comments

@polluks
Copy link
Contributor

polluks commented Jan 1, 2022

configure:6101: gcc -o conftest -g -O2   conftest.c  -lncurses >&5
conftest.c:72:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main() { regex_t r; regmatch_t rm; char *text = "xabcy";
^
conftest.c:73:28: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
if (regcomp(&r, "abc", 0)) exit(1);
                           ^
conftest.c:73:28: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
1 warning and 1 error generated.
configure:6101: $? = 1
configure: program exited with status 1
@gwsw
Copy link
Owner

gwsw commented Jan 2, 2022

Thanks, fixed in d575033.

@polluks
Copy link
Contributor Author

polluks commented Jan 2, 2022

Now works with macOS 12

@polluks polluks closed this as completed Jan 2, 2022
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

2 participants