-
Notifications
You must be signed in to change notification settings - Fork 30
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
Compilation Issue on MacOS Sierra v10.12.6 #42
Comments
This is weird, it works on my mac:
Also with gcc-7:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I tried to compile on MacOS, I get the following:
$make all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../RedisModulesSDK/rmutil
gcc -g -fPIC -O3 -std=gnu99 -Wall -Wno-unused-function -I../ -c -o periodic.o periodic.c
periodic.c:34:5: warning: implicit declaration of function 'clock_gettime' is invalid in C99
[-Wimplicit-function-declaration]
clock_gettime(CLOCK_REALTIME, &ts);
^
periodic.c:34:19: error: use of undeclared identifier 'CLOCK_REALTIME'
clock_gettime(CLOCK_REALTIME, &ts);
^
1 warning and 1 error generated.
make[1]: *** [periodic.o] Error 1
make: *** [rmutil] Error 2
How can resolve the issue? Where should I declare CLOCK_REALTIME?
The command, $uname -s returns the value as Darwin
Also, I am new to use of redis module. So, appreciate your time to resolve this issue. Thank you,
The text was updated successfully, but these errors were encountered: