fixes for netbsd #591

Closed
wants to merge 4 commits into
from

1 participant

@yamt

No description provided.

yamt added some commits Jul 19, 2012
@yamt yamt don't define _XOPEN_SOURCE for NetBSD
on NetBSD, defining _XOPEN_SOURCE hides extensions
like inet_aton, strcasecmp, etc.
ed3f412
@yamt yamt rename popcount to popcount_binary to avoid a conflict with NetBSD libc
NetBSD-current's libc has a function named popcount.
hiding these extensions using feature macros is not possible because
redis uses other extensions covered by the same feature macro.
eg. inet_aton
8c13e40
@yamt yamt use nanosleep instead of usleep
SUSv3 says that:
	The useconds argument shall be less than one million. If the value of
	useconds is 0, then the call has no effect.
and actually NetBSD's implementation rejects such a value with EINVAL.
use nanosleep which has no such a limitation instead.
45ae74a
@yamt yamt _XOPEN_SOURCE 600 for NetBSD as well
it's necessary for getaddrinfo etc.
while i'm not sure why this is under #ifdef linux in the first place,
keep non-NetBSD cases as-is for now.
7e92f84
@yamt yamt referenced this pull request Oct 28, 2012
Closed

fixes for netbsd #735

@yamt

see rebased version: #735

@yamt yamt closed this Oct 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment