|
Revision 3625, 1.8 kB
(checked in by tg, 1 year ago)
|
unbreak build on BSD oO
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
#ifndef IN_CROSSBUILD |
|---|
| 24 |
#include_next </usr/include/sys/param.h> |
|---|
| 25 |
|
|---|
| 26 |
#ifndef __linux__ |
|---|
| 27 |
typedef off_t loff_t; |
|---|
| 28 |
#endif |
|---|
| 29 |
#endif |
|---|
| 30 |
|
|---|
| 31 |
#if !defined(__RCSID) || !defined(__SCCSID) || !defined(__COPYRIGHT) |
|---|
| 32 |
#undef __IDSTRING |
|---|
| 33 |
#undef __IDSTRING_CONCAT |
|---|
| 34 |
#undef __IDSTRING_EXPAND |
|---|
| 35 |
#undef __COPYRIGHT |
|---|
| 36 |
#undef __RCSID |
|---|
| 37 |
#undef __SCCSID |
|---|
| 38 |
#define __IDSTRING_CONCAT(l,p) __LINTED__ ## l ## _ ## p |
|---|
| 39 |
#define __IDSTRING_EXPAND(l,p) __IDSTRING_CONCAT(l,p) |
|---|
| 40 |
#define __IDSTRING(prefix, string) \ |
|---|
| 41 |
static const char __IDSTRING_EXPAND(__LINE__,prefix) [] \ |
|---|
| 42 |
__attribute__((used)) = "@(""#)" #prefix ": " string |
|---|
| 43 |
#define __COPYRIGHT(x) __IDSTRING(copyright,x) |
|---|
| 44 |
#define __RCSID(x) __IDSTRING(rcsid,x) |
|---|
| 45 |
#define __SCCSID(x) __IDSTRING(sccsid,x) |
|---|
| 46 |
#endif |
|---|
| 47 |
|
|---|
| 48 |
#ifndef IN_CROSSBUILD |
|---|
| 49 |
#if !defined(BSD) && defined(_STRLCPY_DEFNS) |
|---|
| 50 |
size_t strlcat(char *, const char *, size_t); |
|---|
| 51 |
size_t strlcpy(char *, const char *, size_t); |
|---|
| 52 |
#endif |
|---|
| 53 |
#endif |
|---|