diff options
author | joerg <joerg@pkgsrc.org> | 2011-11-10 21:58:43 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2011-11-10 21:58:43 +0000 |
commit | 160270974474487112fd73226a07258bd539a588 (patch) | |
tree | 9f78c2cef340b779b951c2c6fcf55adf6ef9e253 /pkgtools | |
parent | 597bcc98ac8661b288a0b4173c6f792556fb02d7 (diff) | |
download | pkgsrc-160270974474487112fd73226a07258bd539a588.tar.gz |
Don't use implementation namespace as include guard. If not using our
SHA2 code, fallback to <sha2.h>.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/libnbcompat/files/nbcompat/sha2.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgtools/libnbcompat/files/nbcompat/sha2.h b/pkgtools/libnbcompat/files/nbcompat/sha2.h index ecbd44825d9..ac1a0a1e5de 100644 --- a/pkgtools/libnbcompat/files/nbcompat/sha2.h +++ b/pkgtools/libnbcompat/files/nbcompat/sha2.h @@ -33,11 +33,13 @@ * */ -#ifndef __SHA2_H__ -#define __SHA2_H__ +#ifndef NBCOMPAT_SHA2_H_ +#define NBCOMPAT_SHA2_H_ #include <nbcompat/types.h> +#if defined(HAVE_NBCOMPAT_SHA2) + #ifdef __cplusplus extern "C" { #endif @@ -116,5 +118,8 @@ char *SHA512_File(char *, char *); } #endif /* __cplusplus */ -#endif /* __SHA2_H__ */ +#else /* HAVE_NBCOMPAT_SHA2 */ +#include <sha2.h> +#endif /* HAVE_NBCOMPAT_SHA2 */ +#endif /* NBCOMPAT_SHA2_H_ */ |