diff options
Diffstat (limited to 'openbsd-compat/bsd-misc.c')
-rw-r--r-- | openbsd-compat/bsd-misc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c index 6f3bc8f1d..cfd73260a 100644 --- a/openbsd-compat/bsd-misc.c +++ b/openbsd-compat/bsd-misc.c | |||
@@ -301,3 +301,11 @@ mbtowc(wchar_t *pwc, const char *s, size_t n) | |||
301 | return 1; | 301 | return 1; |
302 | } | 302 | } |
303 | #endif | 303 | #endif |
304 | |||
305 | #ifndef HAVE_LLABS | ||
306 | long long | ||
307 | llabs(long long j) | ||
308 | { | ||
309 | return (j < 0 ? -j : j); | ||
310 | } | ||
311 | #endif | ||