Guard individual compatibility header prototypes.

This is to avoid redefining prototypes from the libc headers. Also,
simplify the autoconf function checks and remove some copy/paste
errors checking for 'write'.

ok wouter@
This commit is contained in:
Brent Cook
2014-07-28 12:09:38 -05:00
parent cd168d519b
commit 981fc3618a
4 changed files with 71 additions and 45 deletions

View File

@@ -3,7 +3,12 @@
#ifndef LIBCRYPTOCOMPAT_UNISTD_H
#define LIBCRYPTOCOMPAT_UNISTD_H
#ifdef NO_GETENTROPY
int getentropy(void *buf, size_t buflen);
#endif
#ifdef NO_ISSETUGID
int issetugid(void);
#endif
#endif