diff --git a/libdnet-stripped/NMAP_MODIFICATIONS b/libdnet-stripped/NMAP_MODIFICATIONS index 6a7cd40d7..31d473b89 100644 --- a/libdnet-stripped/NMAP_MODIFICATIONS +++ b/libdnet-stripped/NMAP_MODIFICATIONS @@ -1899,7 +1899,7 @@ index 44e7dd2..47f3705 100644 #include "dnet.h" -+#ifdef RT_ROUNDUP ++#if defined(RT_ROUNDUP) && defined(__NetBSD__) +/* NetBSD defines this macro rounding to 64-bit boundaries. + http://fxr.watson.org/fxr/ident?v=NETBSD;i=RT_ROUNDUP */ +#define ROUNDUP(a) RT_ROUNDUP(a) diff --git a/libdnet-stripped/src/route-bsd.c b/libdnet-stripped/src/route-bsd.c index 47f370522..9bc4bb092 100644 --- a/libdnet-stripped/src/route-bsd.c +++ b/libdnet-stripped/src/route-bsd.c @@ -47,7 +47,7 @@ #include "dnet.h" -#ifdef RT_ROUNDUP +#if defined(RT_ROUNDUP) && defined(__NetBSD__) /* NetBSD defines this macro rounding to 64-bit boundaries. http://fxr.watson.org/fxr/ident?v=NETBSD;i=RT_ROUNDUP */ #define ROUNDUP(a) RT_ROUNDUP(a)