la1k / libpredict

A satellite orbit prediction library
GNU General Public License v2.0
40 stars 24 forks source link

src/julian_date.c needs "#include <time.h>" for gmtime_r #99

Closed yurivict closed 6 years ago

yurivict commented 6 years ago

But on BSD it only works if included before #define _POSIX_C_SOURCE 1.

ryeng commented 6 years ago

You're right. I don't know why this has worked on Linux.

ryeng commented 6 years ago

I've made a pull request, but I don't have a FreeBSD box a the moment. It would be really helpful if you or someone else could test this on FreeBSD and report back.