Blame


1 90fbce40 2021-11-25 op /*
2 90fbce40 2021-11-25 op * Copyright (c) 2021 Omar Polo <op@omarpolo.com>
3 90fbce40 2021-11-25 op *
4 90fbce40 2021-11-25 op * Permission to use, copy, modify, and distribute this software for any
5 90fbce40 2021-11-25 op * purpose with or without fee is hereby granted, provided that the above
6 90fbce40 2021-11-25 op * copyright notice and this permission notice appear in all copies.
7 90fbce40 2021-11-25 op *
8 90fbce40 2021-11-25 op * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 90fbce40 2021-11-25 op * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 90fbce40 2021-11-25 op * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 90fbce40 2021-11-25 op * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 90fbce40 2021-11-25 op * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 90fbce40 2021-11-25 op * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 90fbce40 2021-11-25 op * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 90fbce40 2021-11-25 op */
16 90fbce40 2021-11-25 op
17 90fbce40 2021-11-25 op #ifndef COMPAT_H
18 90fbce40 2021-11-25 op #define COMPAT_H
19 90fbce40 2021-11-25 op
20 90fbce40 2021-11-25 op #include "config.h"
21 90fbce40 2021-11-25 op
22 90fbce40 2021-11-25 op #ifdef HAVE_ERR
23 90fbce40 2021-11-25 op # include <err.h>
24 90fbce40 2021-11-25 op #else
25 90fbce40 2021-11-25 op void err(int, const char*, ...);
26 90fbce40 2021-11-25 op void errx(int, const char*, ...);
27 90fbce40 2021-11-25 op void warn(const char*, ...);
28 90fbce40 2021-11-25 op void warnx(const char*, ...);
29 90fbce40 2021-11-25 op #endif
30 90fbce40 2021-11-25 op
31 90fbce40 2021-11-25 op #ifndef HAVE_GETPROGNAME
32 90fbce40 2021-11-25 op const char *getprogname(void);
33 90fbce40 2021-11-25 op #endif
34 90fbce40 2021-11-25 op
35 90fbce40 2021-11-25 op #ifndef HAVE_STRTONUM
36 90fbce40 2021-11-25 op long long strtonum(const char*, long long, long long, const char**);
37 90fbce40 2021-11-25 op #endif
38 90fbce40 2021-11-25 op
39 90fbce40 2021-11-25 op #endif /* COMPAT_H */