]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lib: only define ntohll if not already defined
authorVincent Bernat <vincent@bernat.im>
Sun, 31 Jan 2016 14:29:56 +0000 (15:29 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 31 Jan 2016 14:29:56 +0000 (15:29 +0100)
src/lib/fixedpoint.c

index 155fad11e16ffd5f110a7b8d1336fd58b1f4f819..737919cf4dd9080a1660f5b918b817981ddca0b3 100644 (file)
 
 #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.