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

Fix building in case of HAVE_EXPLICIT_BZERO #28

Merged
merged 1 commit into from Jul 9, 2015
Merged

Fix building in case of HAVE_EXPLICIT_BZERO #28

merged 1 commit into from Jul 9, 2015

Conversation

abrodkin
Copy link
Contributor

@abrodkin abrodkin commented Jul 9, 2015

Currently if toolchain has implementation of explicit_bzero() and so
HAVE_EXPLICIT_BZERO gets defined during configuration compilation will
fail that way:
------------------------------------>8------------------------------
utils.c: In function 'pure_memzero':
utils.c:49:1: error: expected declaration or statement at end of input
}
^
------------------------------------>8------------------------------

That happens because closing "#endif" is put 1 line below than really
meant.

Signed-off-by: Alexey Brodkin abrodkin@synopsys.com

Currently if toolchain has implementation of explicit_bzero() and so
HAVE_EXPLICIT_BZERO gets defined during configuration compilation will
fail that way:
------------------------------------>8------------------------------
utils.c: In function 'pure_memzero':
utils.c:49:1: error: expected declaration or statement at end of input
 }
 ^
------------------------------------>8------------------------------

That happens because closing "#endif" is put 1 line below than really
meant.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
jedisct1 added a commit that referenced this pull request Jul 9, 2015
Fix building in case of HAVE_EXPLICIT_BZERO
@jedisct1 jedisct1 merged commit 9d3bd9b into jedisct1:master Jul 9, 2015
@jedisct1
Copy link
Owner

jedisct1 commented Jul 9, 2015

Good catch. I indeed hadn't tried on Bitrig/OpenBSD without libsodum.
Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants