Good to Know: fixing leapsecs_read() on OS X
libtai-0.60 won't always run on OS X.
But we can fix that.
The major problem comes with the fact that you can't read your leapseconds table.
You gotta be able to read your leapseconds table if you want to get anything done.
So edit leapsecs_read.c.
1. Add one header file: #include <unistd.h>
2. Change the single instance of "O_NDELAY" to "O_NONBLOCK".
3. Pop open a beer while you recompile. You are done.
No comments:
Post a Comment