aboutsummaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-07-28 12:09:38 -0500
committerBrent Cook <bcook@openbsd.org>2014-07-28 13:52:07 -0500
commit981fc3618a78970cca6327666366a7056edd3ebf (patch)
tree4ab5ddc40a14bc81868cb4b736a3376108f3d85e /include/unistd.h
parentcd168d519bd2f44f03180f3c97bb476174ddb832 (diff)
downloadportable-981fc3618a78970cca6327666366a7056edd3ebf.tar.gz
portable-981fc3618a78970cca6327666366a7056edd3ebf.tar.bz2
portable-981fc3618a78970cca6327666366a7056edd3ebf.zip
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@
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index ae82b95..037b11a 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -3,7 +3,12 @@
3#ifndef LIBCRYPTOCOMPAT_UNISTD_H 3#ifndef LIBCRYPTOCOMPAT_UNISTD_H
4#define LIBCRYPTOCOMPAT_UNISTD_H 4#define LIBCRYPTOCOMPAT_UNISTD_H
5 5
6#ifdef NO_GETENTROPY
6int getentropy(void *buf, size_t buflen); 7int getentropy(void *buf, size_t buflen);
8#endif
9
10#ifdef NO_ISSETUGID
7int issetugid(void); 11int issetugid(void);
12#endif
8 13
9#endif 14#endif