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

Compile error on glibc-2.38-23 #164

Open
pbsds opened this issue Oct 27, 2023 · 0 comments
Open

Compile error on glibc-2.38-23 #164

pbsds opened this issue Oct 27, 2023 · 0 comments

Comments

@pbsds
Copy link

pbsds commented Oct 27, 2023

/usr/include/string.h:380:14: error: conflicting types for 'strcasestr'; have 'char *(const char *, const char *)'
  380 | extern char *strcasestr (const char *__haystack, const char *__needle)
      |              ^~~~~~~~~~
mimetex.c:428:13: note: previous declaration of 'strcasestr' with type 'const char *(const char *, const char *)'
  428 | const char *strcasestr(const char *s1, const char *s2);

Removing the const from const char *strcasestr seems to fix it.

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