From: Vincent Bernat Date: Sun, 31 Jan 2016 14:29:56 +0000 (+0100) Subject: lib: only define ntohll if not already defined X-Git-Tag: 0.9.1~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96d5697ed2bf9ab3ec824430c95f10547d6f68ee;p=thirdparty%2Flldpd.git lib: only define ntohll if not already defined --- diff --git a/src/lib/fixedpoint.c b/src/lib/fixedpoint.c index 155fad11..737919cf 100644 --- a/src/lib/fixedpoint.c +++ b/src/lib/fixedpoint.c @@ -28,9 +28,11 @@ #ifdef ENABLE_LLDPMED -#define ntohll(x) \ +#ifndef ntohll +# define ntohll(x) \ (((u_int64_t)(ntohl((int)(((x) << 32) >> 32))) << 32) | \ (unsigned int)ntohl(((int)((x) >> 32)))) +#endif /** * Convert a string to fixed point number.