Make roundup2() generally available.
diff --git a/netdissect.h b/netdissect.h
index 443a931..4f3c666 100644
--- a/netdissect.h
+++ b/netdissect.h
@@ -104,6 +104,13 @@
  */
 typedef unsigned char nd_byte;
 
+/*
+ * Round up x to a multiple of y; y must be a power of 2.
+ */
+#ifndef roundup2
+#define	roundup2(x, y)	(((x)+((y)-1))&(~((y)-1)))
+#endif
+
 /* nd_snprintf et al */
 
 #include <stdarg.h>
diff --git a/print-802_11.c b/print-802_11.c
index 7f6a230..227e1bf 100644
--- a/print-802_11.c
+++ b/print-802_11.c
@@ -2000,11 +2000,6 @@
 	}
 }
 
-#ifndef roundup2
-#define	roundup2(x, y)	(((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */
-#endif
-
-
 static u_int
 ieee802_11_print(netdissect_options *ndo,
                  const u_char *p, u_int length, u_int orig_caplen, int pad,