summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-05-31 15:58:38 +0200
committerOndrej Filip <feela@network.cz>2004-05-31 15:58:38 +0200
commitd93fb7e6b9a1d2964bc926ca9ed7ab11f5003c1d (patch)
tree01370cc426e2e2c921b4d5cd3a88d1c5ba918134
parenta60277b9997a891fdc5d62e07ac96885c009f531 (diff)
downloadbird-d93fb7e6b9a1d2964bc926ca9ed7ab11f5003c1d.tar
bird-d93fb7e6b9a1d2964bc926ca9ed7ab11f5003c1d.zip
#ifndef ALIGN - it is defined on *BSD
-rw-r--r--lib/birdlib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h
index 1904d66..faf8bc6 100644
--- a/lib/birdlib.h
+++ b/lib/birdlib.h
@@ -13,7 +13,9 @@
#define OFFSETOF(s, i) ((unsigned int)&((s *)0)->i)
#define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i)))
+#ifndef ALIGN
#define ALIGN(s, a) (((s)+a-1)&~(a-1))
+#endif
/* Utility macros */