about summary refs log tree commit diff
path: root/nscd/nscd.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-05-16 10:29:43 -0700
committerUlrich Drepper <drepper@redhat.com>2009-05-16 10:29:43 -0700
commitfa546abe9d0346d5d87b8fe19884993408476d77 (patch)
tree54ec8e48c6d45179b6d1b9a5700734c659f4fcb3 /nscd/nscd.h
parent95410b7ba23c44f6a038285d9c38ee84129e4cd6 (diff)
downloadglibc-fa546abe9d0346d5d87b8fe19884993408476d77.tar.gz
glibc-fa546abe9d0346d5d87b8fe19884993408476d77.tar.xz
glibc-fa546abe9d0346d5d87b8fe19884993408476d77.zip
Move BLOCK_ALIGN* macros back.
The move to nscd-client.h was only needed for some interim version
of the patch.  The final version doesn't need it.  Undo the change.
Diffstat (limited to 'nscd/nscd.h')
-rw-r--r--nscd/nscd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/nscd/nscd.h b/nscd/nscd.h
index 632bf58dc5..3279b85432 100644
--- a/nscd/nscd.h
+++ b/nscd/nscd.h
@@ -111,6 +111,11 @@ struct database_dyn
 /* Path used when not using persistent storage.  */
 #define _PATH_NSCD_XYZ_DB_TMP	"/var/run/nscd/dbXXXXXX"
 
+/* Maximum alignment requirement we will encounter.  */
+#define BLOCK_ALIGN_LOG 3
+#define BLOCK_ALIGN (1 << BLOCK_ALIGN_LOG)
+#define BLOCK_ALIGN_M1 (BLOCK_ALIGN - 1)
+
 /* Default value for the maximum size of the database files.  */
 #define DEFAULT_MAX_DB_SIZE	(32 * 1024 * 1024)