diff options
author | Darren Tucker <dtucker@zip.com.au> | 2017-09-25 09:48:10 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2017-09-25 09:48:10 +1000 |
commit | 44fc334c7a9ebdd08addb6d5fa005369897fddeb (patch) | |
tree | f1e113af2215b661dc01d89785897069c13a5693 /openbsd-compat/bsd-misc.h | |
parent | 218e6f98df566fb9bd363f6aa47018cb65ede196 (diff) |
Add minimal strsignal for platforms without it.
Diffstat (limited to 'openbsd-compat/bsd-misc.h')
-rw-r--r-- | openbsd-compat/bsd-misc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index 70a538f04..0b1a3504f 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h | |||
@@ -49,6 +49,10 @@ int setegid(uid_t); | |||
49 | const char *strerror(int); | 49 | const char *strerror(int); |
50 | #endif | 50 | #endif |
51 | 51 | ||
52 | #if !defined(HAVE_STRSIGNAL) | ||
53 | char *strsignal(int); | ||
54 | #endif | ||
55 | |||
52 | #if !defined(HAVE_SETLINEBUF) | 56 | #if !defined(HAVE_SETLINEBUF) |
53 | #define setlinebuf(a) (setvbuf((a), NULL, _IOLBF, 0)) | 57 | #define setlinebuf(a) (setvbuf((a), NULL, _IOLBF, 0)) |
54 | #endif | 58 | #endif |