summaryrefslogtreecommitdiff
path: root/src/include/skalibs/posixishard.h
blob: b5da0779edb045f43a5c7ffe16517d438dd37c3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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