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

Fix compilation issue on OSX #1

Open
SanderMertens opened this issue Oct 9, 2017 · 0 comments
Open

Fix compilation issue on OSX #1

SanderMertens opened this issue Oct 9, 2017 · 0 comments

Comments

@SanderMertens
Copy link
Member

SanderMertens commented Oct 9, 2017

On OSX the httpserver fails with this compiler error:

In file included from src/civetweb.c:221:
/usr/include/time.h:177:5: error: conflicting types for '_civet_clock_gettime'
int clock_gettime(clockid_t __clock_id, struct timespec *__tp);
    ^
src/civetweb.c:215:23: note: expanded from macro 'clock_gettime'
#define clock_gettime _civet_clock_gettime
                      ^
src/civetweb.c:159:1: note: previous definition is here
_civet_clock_gettime(int clk_id, struct timespec *t)

The file originates from the civetweb/civetweb GitHub repository, where this issue has not been solved (when I last checked). A fix on this repository should ideally be ported back to the civetweb repository as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant