risacher / sunwait

Sunwait calculates sunrise or sunset times with civil, nautical, astronomical and custom twilights, for use with Windows Task Scheduler or 'cron' on Linux.
GNU General Public License v3.0
193 stars 45 forks source link

OpenBSD #10

Open pachristopher opened 4 years ago

pachristopher commented 4 years ago

Initial attempt to compile with make in OpenBSD resulted in compilation error. Changing the abs() function to fabs() at line 95 of sunriset.cpp seemed to fix that. Program now runs but returns error(1) as far as I can see as the output is always the following:-

--:--, --:-- (Midnight sun)

My coding skills are beyond fixing this.

tljohnsn commented 4 years ago

I had the same output on osx. I think you can adapt my pull request to make it work on BSD also: https://github.com/risacher/sunwait/pull/15

lifeModder19135 commented 3 years ago

@tljohnsn OP's coding skills are beyond this, remember? Even though he or she only has 2 repos, one of which is empty? Maybe its an alt acct, as their skills are obviously beyond putting a mere shell script in their main repo.