-
Notifications
You must be signed in to change notification settings - Fork 426
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
timer_t missing on Mac OSX #334
Comments
hi, macosx support it
#ifndef _TIME_T
#define _TIME_T
#include <machine/types.h> /* __darwin_time_t */
typedef __darwin_time_t time_t;
#endif /* _TIME_T */ macosx version: 11.14.5 |
Hello, @OrangeBook But, macOS doesn't support |
@hiroyuki-sato
|
suggest you add here code
and add gcc ... -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/ or you can try gnulib
|
Hello, @OrangeBook. Thank you for your comment. My point was
Lines 104 to 119 in cb508a0
SYNOPSIS
#include <signal.h>
#include <time.h>
int timer_create(clockid_t clockid, struct sigevent *sevp,
timer_t *timerid);
|
yea, I found mixed |
Even though timer_t is part of POSIX, it's missing from Mac OSX and references thereto are causing build errors of the form
error: unknown type name 'timer_t'; did you mean 'time_t'?
.I have not found a trivial solution.
The text was updated successfully, but these errors were encountered: