1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 17:09:02 +00:00

Only use RT_ROUNDUP on NetBSD

AIX's version breaks things: http://seclists.org/nmap-dev/2014/q3/405
This commit is contained in:
dmiller
2014-09-08 20:50:51 +00:00
parent 3c5137e7e7
commit 48dfb446d2
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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)