]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - para.h
Merge commit 'athcx/v0.2' into v0.2
[paraslash.git] / para.h
diff --git a/para.h b/para.h
index 7b0ca09c6c0b5f84c7ddab93eb92912e83245a44..5197360dc38c27cb21710806fba41662b0241c24 100644 (file)
--- a/para.h
+++ b/para.h
@@ -24,6 +24,7 @@
 #include <sys/socket.h>
 #include <sys/un.h> /* needed by create_pf_socket */
 #include <string.h>
+#include <assert.h>
 #include "gcc-compat.h"
 
 /** used in various contexts */
@@ -204,3 +205,6 @@ __printf_2_3 void para_log(int, const char*, ...);
                p = para_realloc(p, size); \
        } \
 }
+
+/* Round up x to a multiple of y */
+#define ROUND_UP(x, y) (((x) + (y - 1) / (y)) * (y))