Update portability notes.
[darkstat] / bsd.h
1 /* darkstat 3
2 * copyright (c) 2011-2014 Emil Mikulic.
3 *
4 * bsd.h: *BSD compatibility.
5 */
6
7 #include <sys/types.h>
8 #include "config.h"
9 #ifdef HAVE_BSD_STRING_H
10 # include <bsd/string.h>
11 #endif
12 #ifdef HAVE_BSD_UNISTD_H
13 # include <bsd/unistd.h>
14 #endif
15
16 #ifndef HAVE_STRLCPY
17 size_t strlcpy(char *dst, const char *src, size_t siz);
18 #endif
19
20 #ifndef HAVE_STRLCAT
21 size_t strlcat(char *dst, const char *src, size_t siz);
22 #endif
23
24 #ifndef HAVE_SETPROCTITLE
25 #define setproctitle(fmt) /* no-op */
26 #endif
27
28 /* vim:set ts=3 sw=3 tw=78 expandtab: */