diff options
Diffstat (limited to 'src/include/skalibs/posixishard.h')
-rw-r--r-- | src/include/skalibs/posixishard.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/include/skalibs/posixishard.h b/src/include/skalibs/posixishard.h new file mode 100644 index 0000000..b5da077 --- /dev/null +++ b/src/include/skalibs/posixishard.h @@ -0,0 +1,30 @@ +/* ISC license. */ + +#ifndef SKALIBS_POSIXISHARD_H +#define SKALIBS_POSIXISHARD_H + +#include <stddef.h> + +#include <skalibs/gccattributes.h> + + /* + This header must be used with some broken OSes who have + serious trouble implementing even easy parts of POSIX. + It's supposed to be included *after* system headers, so + it won't catch behaviour such as "this macro must be defined + prior to including system headers in order to define that + symbol". If that's what you need, include skalibs/nonposix.h + instead, which must happen *before* system headers. + */ + +extern size_t strnlen (char const *, size_t) gccattr_pure ; + +#ifndef EPROTO +#define EPROTO EPROTOTYPE +#endif + +#ifndef MSG_NOSIGNAL +#define MSG_NOSIGNAL 0 +#endif + +#endif |