mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-22 13:24:49 +02:00
Add llabs() implementation.
This commit is contained in:
parent
72536316a2
commit
d38f05dbdd
@ -1717,6 +1717,7 @@ AC_CHECK_FUNCS([ \
|
|||||||
inet_ntoa \
|
inet_ntoa \
|
||||||
inet_ntop \
|
inet_ntop \
|
||||||
innetgr \
|
innetgr \
|
||||||
|
llabs \
|
||||||
login_getcapbool \
|
login_getcapbool \
|
||||||
md5_crypt \
|
md5_crypt \
|
||||||
memmove \
|
memmove \
|
||||||
|
@ -301,3 +301,11 @@ mbtowc(wchar_t *pwc, const char *s, size_t n)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_LLABS
|
||||||
|
long long
|
||||||
|
llabs(long long j)
|
||||||
|
{
|
||||||
|
return (j < 0 ? -j : j);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
@ -135,4 +135,8 @@ void errx(int, const char *, ...) __attribute__((format(printf, 2, 3)));
|
|||||||
void warn(const char *, ...) __attribute__((format(printf, 1, 2)));
|
void warn(const char *, ...) __attribute__((format(printf, 1, 2)));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_LLABS
|
||||||
|
long long llabs(long long);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _BSD_MISC_H */
|
#endif /* _BSD_MISC_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user