Move *BSD compatibility layer to extra file.
[darkstat] / bsd.h
1 /* darkstat 3
2 * copyright (c) 2001-2011 Emil Mikulic.
3 *
4 * bsd.h: *BSD compatibility.
5 */
6
7 #include <sys/types.h>
8
9 #include "config.h"
10
11 #ifndef HAVE_REAL_STRLCPY
12 size_t strlcpy(char *dst, const char *src, size_t siz);
13 #endif
14
15 #ifndef HAVE_REAL_STRLCAT
16 size_t strlcat(char *dst, const char *src, size_t siz);
17 #endif
18
19 #ifndef HAVE_REAL_SETPROCTITLE
20 #ifdef HAVE_SETPROCTITLE
21 void setproctitle(const char *fmt, ...);
22 #else
23 #define setproctitle(fmt, ...)
24 #endif
25 #endif
26
27 /* vim:set ts=3 sw=3 tw=78 expandtab: */