| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
#ifndef COMPAT_H |
| 9 |
#define COMPAT_H |
| 10 |
|
| 11 |
#ifndef HAVE_STRLCPY |
| 12 |
#include <stddef.h> |
| 13 |
size_t strlcpy(char *dst, const char *src, size_t siz); |
| 14 |
#endif |
| 15 |
|
| 16 |
#ifndef HAVE_STRLCAT |
| 17 |
#include <stddef.h> |
| 18 |
size_t strlcat(char *dst, const char *src, size_t siz); |
| 19 |
#endif |
| 20 |
|
| 21 |
#ifndef HAVE_GETOPT |
| 22 |
extern char *optarg; |
| 23 |
extern int optind; |
| 24 |
int getopt(int, char * const [], const char *); |
| 25 |
#endif |
| 26 |
|
| 27 |
#ifndef HAVE_MKSTEMP |
| 28 |
int mkstemp(char *); |
| 29 |
#endif |
| 30 |
|
| 31 |
#ifndef HAVE_FFS |
| 32 |
int ffs(int); |
| 33 |
#endif |
| 34 |
|
| 35 |
#ifndef HAVE_SNPRINTF |
| 36 |
#include <stddef.h> |
| 37 |
int snprintf(char *str, size_t count, const char *fmt, ...); |
| 38 |
#endif |
| 39 |
|
| 40 |
#ifndef HAVE_VSNPRINTF |
| 41 |
#include <stddef.h> |
| 42 |
#include <stdarg.h> |
| 43 |
int vsnprintf(char *str, size_t count, const char *fmt, va_list args); |
| 44 |
#endif |
| 45 |
|
| 46 |
#endif |