Skip to content
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

vnstat: fix musl compatibility #1415

Merged
merged 1 commit into from
Jun 17, 2015
Merged

vnstat: fix musl compatibility #1415

merged 1 commit into from
Jun 17, 2015

Conversation

papaj0e
Copy link
Contributor

@papaj0e papaj0e commented Jun 17, 2015

Signed-off-by: Peter Ivanov pivanov@hotmail.com

Signed-off-by: Peter Ivanov <pivanov@hotmail.com>
jow- added a commit that referenced this pull request Jun 17, 2015
vnstat: fix musl compatibility
@jow- jow- merged commit 38d8e72 into openwrt:master Jun 17, 2015
@jow-
Copy link
Contributor

jow- commented Jun 17, 2015

thanks!

@papaj0e
Copy link
Contributor Author

papaj0e commented Jun 17, 2015

Hopefully its fine this time 👍

@thess
Copy link
Member

thess commented Jun 18, 2015

Thanks from me too

@karlp
Copy link
Contributor

karlp commented Jun 18, 2015

Filed upstream as vergoh/vnstat#21

@karlp
Copy link
Contributor

karlp commented Jun 27, 2015

This has now been committed fixed upstream, see vergoh/vnstat@964d7cd

Fanfwe pushed a commit to Fanfwe/packages that referenced this pull request Aug 18, 2021
OS X (and *BSD) strptime() does not set tm_wday nor tm_yday unless
corresponding format options are used.  That means we must call timegm()
to set them.
Fanfwe pushed a commit to Fanfwe/packages that referenced this pull request Aug 18, 2021
strptime() on OS X and *BSDs (reputedly) does not set tm_wday and
tm_yday unless corresponding %U and %j format specifiers were used.
That can be... surprising when one parsed year, month, and day anyways.
Glibc's strptime() conveniently sets tm_wday and tm_yday in those cases,
but OS X's does not, ignoring them completely.

This commit makes jq compute those where possible, though the day of
week computation may be wrong for dates before 1900-03-01 or after
2099-12-31.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants